Bug, attachments stored double in file table

This if-statement looked like this before:

if (empty($file_redir))

and so it needs a ! when rewritten as instanceof
Hannes Mannerheim's merge request 8 from Gitorious