mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-21 09:03:38 +02:00
bug correction : in case of filesize metadata not registered into database,
it couldn't be calculated git-svn-id: http://piwigo.org/svn/trunk@485 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -99,7 +99,7 @@ while ($row = mysql_fetch_array($result))
|
||||
|
||||
// message in title for the thumbnail
|
||||
$thumbnail_title = $row['file'];
|
||||
if ($row['filesize'] == '')
|
||||
if (!isset($row['filesize']) or $row['filesize'] == '')
|
||||
{
|
||||
$filesize = floor(filesize($cat_directory.$row['file']) / 1024);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user