aboutsummaryrefslogtreecommitdiffstats
path: root/include/dblayer/functions_mysql.inc.php
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2012-02-06 20:59:20 +0000
committerrvelices <rv-github@modusoptimus.com>2012-02-06 20:59:20 +0000
commit0d277219fc5fea718d27d80e7ae68b6f4c2f4c4a (patch)
tree0a45bd317b98f2292efe38c8aaf53c163c31e286 /include/dblayer/functions_mysql.inc.php
parent8d86e7b399fbda576306453c332cd9daeb44bdde (diff)
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
Diffstat (limited to '')
-rw-r--r--include/dblayer/functions_mysql.inc.php6
1 files changed, 3 insertions, 3 deletions
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;