aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorz0rglub <z0rglub@piwigo.org>2004-08-16 21:44:19 +0000
committerz0rglub <z0rglub@piwigo.org>2004-08-16 21:44:19 +0000
commit5b35869ada1e42e980f753fb7711b4fa51b0502e (patch)
tree1e117a0e5f7cafecd946456c225dcd733afd7951
parentd1389ee8eb482e8517bfe01d02734cf2971fe3e4 (diff)
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
Diffstat (limited to '')
-rw-r--r--include/category_default.inc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/category_default.inc.php b/include/category_default.inc.php
index c7069ae9e..73ad7af37 100644
--- a/include/category_default.inc.php
+++ b/include/category_default.inc.php
@@ -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);
}