Fixed Error generated from a report of media in an album

Mike

XenForo developer
Staff member
The 1.0.9 release briefly included a mistake that could create a server error with old reports of media within albums. As of this post, the download has been patched to revert the incorrect fix. (This fix can also be applied to 1.1.0 Beta 2.)

If you are affected, to fix, in library/XenGallery/ReportHander/Media.php, replace:
Code:
        if (!empty($contentInfo['media']['album_id']))
        {
            return new XenForo_Phrase('xengallery_media_x_in_album_y', array('title' => XenForo_Helper_String::censorString($contentInfo['media']['media_title']), 'album' => $contentInfo['media']['album_title']));
        }
        else
        {
            return new XenForo_Phrase('xengallery_media_x_in_category_y', array('title' => XenForo_Helper_String::censorString($contentInfo['media']['media_title']), 'category' => $contentInfo['media']['category_title']));
        }
with:
Code:
        return new XenForo_Phrase('xengallery_media_x_in_category_y', array('title' => XenForo_Helper_String::censorString($contentInfo['media']['media_title']), 'category' => $contentInfo['media']['category_title']));
 
Top Bottom