aboutsummaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--admin/intro.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/admin/intro.php b/admin/intro.php
index 6ff2470ed..326e66609 100644
--- a/admin/intro.php
+++ b/admin/intro.php
@@ -120,7 +120,8 @@ else if (isset($_GET['action']) and 'phpinfo' == $_GET['action'])
$template->set_filenames(array('intro' => 'admin/intro.tpl'));
-list($mysql_version) = mysql_fetch_row(pwg_query('SELECT VERSION();'));
+$php_current_timestamp = date("Y-m-d H:i:s");
+list($mysql_version, $db_current_timestamp) = mysql_fetch_row(pwg_query('SELECT VERSION(), CURRENT_TIMESTAMP;'));
$query = '
SELECT COUNT(*)
@@ -184,9 +185,6 @@ SELECT COUNT(*)
;';
list($nb_comments) = mysql_fetch_row(pwg_query($query));
-$php_current_timestamp = date("Y-m-d H:i:s");
-list($db_current_timestamp) = mysql_fetch_row(pwg_query('SELECT CURRENT_TIMESTAMP;'));
-
$template->assign_vars(
array(
'PWG_VERSION' => PHPWG_VERSION,