mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-05-03 20:12:44 +02:00
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
This commit is contained in:
@@ -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'],
|
||||
|
||||
Reference in New Issue
Block a user