From 0d277219fc5fea718d27d80e7ae68b6f4c2f4c4a Mon Sep 17 00:00:00 2001 From: rvelices Date: Mon, 6 Feb 2012 20:59:20 +0000 Subject: multisize - added the coi (still to affine the admin ui + language) multisize - derivatives can be revuild from a larger derviative instead of the original git-svn-id: http://piwigo.org/svn/trunk@13038 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/dblayer/functions_mysql.inc.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include/dblayer') diff --git a/include/dblayer/functions_mysql.inc.php b/include/dblayer/functions_mysql.inc.php index 2c0aab1dc..65cb9fbd2 100644 --- a/include/dblayer/functions_mysql.inc.php +++ b/include/dblayer/functions_mysql.inc.php @@ -84,10 +84,10 @@ function pwg_query($query) { global $conf,$page,$debug,$t2; - $start = get_moment(); + $start = microtime(true); ($result = mysql_query($query)) or my_error($query, $conf['die_on_sql_error']); - $time = get_moment() - $start; + $time = microtime(true) - $start; if (!isset($page['count_queries'])) { @@ -199,7 +199,7 @@ function array_from_query($query, $fieldname) $result = pwg_query($query); while ($row = mysql_fetch_assoc($result)) { - array_push($array, $row[$fieldname]); + $array[] = $row[$fieldname]; } return $array; -- cgit v1.2.3