diff options
author | rvelices <rv-github@modusoptimus.com> | 2014-02-13 22:21:12 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2014-02-13 22:21:12 +0000 |
commit | 2b81fbc4aa00ab4fcef794083c3f8e2d6bfe314e (patch) | |
tree | 08dae87951f3b196063d30fbae5b1fb12c441c87 /include/functions_notification.inc.php | |
parent | d0733822cebce4c1314ee3e70e4e5ce84df98640 (diff) |
more query2array
git-svn-id: http://piwigo.org/svn/trunk@27369 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | include/functions_notification.inc.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/functions_notification.inc.php b/include/functions_notification.inc.php index af46f50d2..623369915 100644 --- a/include/functions_notification.inc.php +++ b/include/functions_notification.inc.php @@ -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); } } |