more query2array

git-svn-id: http://piwigo.org/svn/trunk@27369 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
rvelices
2014-02-13 22:21:12 +00:00
parent d0733822ce
commit 2b81fbc4aa
6 changed files with 15 additions and 39 deletions
+4 -4
View File
@@ -217,7 +217,7 @@ function custom_notification_query($action, $type, $start=null, $end=null)
break;
}
$query = 'SELECT DISTINCT '.$field_id.' '.$query.';';
$infos = array_from_query($query);
$infos = query2array($query);
return $infos;
break;
}
@@ -456,7 +456,7 @@ SELECT
ORDER BY date_available DESC
LIMIT '.$max_dates.'
;';
$dates = array_from_query($query);
$dates = query2array($query);
for ($i=0; $i<count($dates); $i++)
{
@@ -471,7 +471,7 @@ SELECT DISTINCT i.*
ORDER BY '.DB_RANDOM_FUNCTION.'()
LIMIT '.$max_elements.'
;';
$dates[$i]['elements'] = array_from_query($query);
$dates[$i]['elements'] = query2array($query);
}
if ($max_cats>0)
@@ -489,7 +489,7 @@ SELECT
ORDER BY img_count DESC
LIMIT '.$max_cats.'
;';
$dates[$i]['categories'] = array_from_query($query);
$dates[$i]['categories'] = query2array($query);
}
}