aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions_category.inc.php
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2006-04-28 05:12:25 +0000
committerrvelices <rv-github@modusoptimus.com>2006-04-28 05:12:25 +0000
commitaaea0a1653e42bfa2db8e5be2e36f5e22be16631 (patch)
treec813db5f5550be832cc71d2f334f94a86de28839 /include/functions_category.inc.php
parent0510cfdc5ad38487600f8f1bf8e4d4f9747781df (diff)
merge -r1287 from branch-1_6 to trunk
bug 349: Nicer display messages instead of "die" when urls cannot be solved (also set 404 status code for bots) git-svn-id: http://piwigo.org/svn/trunk@1288 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--include/functions_category.inc.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/functions_category.inc.php b/include/functions_category.inc.php
index a671474ef..2aff86975 100644
--- a/include/functions_category.inc.php
+++ b/include/functions_category.inc.php
@@ -118,6 +118,8 @@ SELECT '.implode(',', $infos).'
WHERE id = '.$id.'
;';
$row = mysql_fetch_array(pwg_query($query));
+ if (empty($row))
+ return null;
$cat = array();
foreach ($infos as $info)