diff options
author | rvelices <rv-github@modusoptimus.com> | 2009-02-13 13:01:03 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2009-02-13 13:01:03 +0000 |
commit | 601134c57e736e4639d0c105c7948279d9563813 (patch) | |
tree | 7bfc44db1c9e336596c5b7324d9a491c8afa5c87 /include/category_default.inc.php | |
parent | d4914a344708d4020f7cee561e41503896da5260 (diff) |
- moved check upgrade feed code to admin/include/functions_upgrade.php
- refactored some code (shorter and somehow faster - but nothing revolutionary)
- decrease lost space in permalinks.tpl and hard coded column width (was illisible)
git-svn-id: http://piwigo.org/svn/trunk@3136 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/category_default.inc.php')
-rw-r--r-- | include/category_default.inc.php | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/include/category_default.inc.php b/include/category_default.inc.php index 025adcc40..98e6250f1 100644 --- a/include/category_default.inc.php +++ b/include/category_default.inc.php @@ -134,8 +134,7 @@ foreach ($pictures as $row) } if ($conf['show_thumbnail_caption']) - { - // name of the picture + {// name of the picture if (isset($row['name']) and $row['name'] != '') { $name = $row['name']; @@ -166,9 +165,7 @@ foreach ($pictures as $row) if ( isset($nb_comments_of) ) { - $row['nb_comments'] = isset($nb_comments_of[$row['id']]) - ? (int)$nb_comments_of[$row['id']] : 0; - $tpl_var['NB_COMMENTS'] = $row['nb_comments']; + $tpl_var['NB_COMMENTS'] = (int)@$nb_comments_of[$row['id']]; } $tpl_thumbnails_var[] = $tpl_var; |