aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--plugins/AMenuManager/amm_pip.class.inc.php5
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'],