diff options
author | rub <rub@piwigo.org> | 2008-09-26 23:58:00 +0000 |
---|---|---|
committer | rub <rub@piwigo.org> | 2008-09-26 23:58:00 +0000 |
commit | 9698c80fcff3ca34de0b7bacaaeaec245e264d98 (patch) | |
tree | c35385b003083b46fd8bb0770286d95b7186a1c4 /plugins | |
parent | 1354e72c9a653bc6f88b33d431db08ea59eecfe2 (diff) |
Fix issue on AMM plugin when there are no public available.
It's necessary to remove status public for a selection of available pictures (public or private)
git-svn-id: http://piwigo.org/svn/trunk@2605 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/AMenuManager/amm_pip.class.inc.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/AMenuManager/amm_pip.class.inc.php b/plugins/AMenuManager/amm_pip.class.inc.php index 6a195b052..98c9730ec 100644 --- a/plugins/AMenuManager/amm_pip.class.inc.php +++ b/plugins/AMenuManager/amm_pip.class.inc.php @@ -60,10 +60,9 @@ WHERE c.status='public' ORDER BY rndvalue LIMIT 0,1 "; - $result=pwg_query($sql); - if($result) + $result = pwg_query($sql); + if($result and $nfo = mysql_fetch_array($result)) { - $nfo = mysql_fetch_array($result); $nfo['section']='category'; $nfo['category']=array( 'id' => $nfo['catid'], |