aboutsummaryrefslogtreecommitdiffstats
path: root/include/dblayer/functions_mysql.inc.php
diff options
context:
space:
mode:
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;