From a9d3ee0e4db38c00cc2380b14616f338acd8e4ea Mon Sep 17 00:00:00 2001 From: plegall Date: Fri, 4 Nov 2011 10:12:01 +0000 Subject: bug 2492 fixed: no need to transmit ['hit'] to get_thumbnail_title, this parameter becomes optional to avoid errors in plugins git-svn-id: http://piwigo.org/svn/branches/2.3@12540 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/functions.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/functions.inc.php') diff --git a/include/functions.inc.php b/include/functions.inc.php index 7873674ec..e69d5ced6 100644 --- a/include/functions.inc.php +++ b/include/functions.inc.php @@ -798,7 +798,7 @@ function get_thumbnail_title($info) $details = array(); - if ($info['hit'] != 0) + if (!empty($info['hit'])) { $details[] = $info['hit'].' '.strtolower(l10n('Visits')); } -- cgit v1.2.3