Hannes Mannerheim's merge request 8 from Gitorious

This commit is contained in:
Mikael Nordfeldth 2014-10-01 11:07:40 +02:00
commit bfe869b8fb

View File

@ -132,7 +132,7 @@ class MediaFile
{
$file_redir = File_redirection::getKV('url', $url);
if ($file_redir instanceof File_redirection) {
if (!$file_redir instanceof File_redirection) {
$file_redir = new File_redirection;
$file_redir->url = $url;
$file_redir->file_id = $file_id;