commit: 9247d5ed38132adb3462f03a0c164761d50be6dd
Author: Brian Evans <grknight <AT> gentoo <DOT> org>
AuthorDate: Tue Jan 30 15:40:48 2018 +0000
Commit: Brian Evans <grknight <AT> gentoo <DOT> org>
CommitDate: Tue Jan 30 15:40:48 2018 +0000
URL: https://gitweb.gentoo.org/proj/bouncer.git/commit/?id=9247d5ed
update admin/lstats.php
php/admin/lstats.php | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/php/admin/lstats.php b/php/admin/lstats.php
index f7f1900..9416eb5 100644
--- a/php/admin/lstats.php
+++ b/php/admin/lstats.php
@@ -7,7 +7,7 @@
$protect=1; // protect this page
require_once('../cfg/init.php');
-$stats = db_get("
+$stats = DB::get("
SELECT
IF(mirror_location_mirror_map.location_active='0','DISABLED','ok') as
location_active,
mirror_name,
@@ -20,7 +20,7 @@ $stats = db_get("
WHERE
mirror_mirrors.mirror_id = mirror_location_mirror_map.mirror_id AND
mirror_locations.location_id = mirror_location_mirror_map.location_id
-",MYSQL_ASSOC);
+",PDO::FETCH_ASSOC);
$_GET['sort']=(!empty($_GET['sort']))?$_GET['sort']:'location_active';
$_GET['order']=(!empty($_GET['order']))?$_GET['order']:'ASC';
@@ -56,4 +56,4 @@ show_list($stats,$headers,'simple');
echo '<p><a
href="./lstats.php?csv=1&sort='.$_GET['sort'].'&order='.$_GET['order'].'">Save
this page as CSV »</a></p>';
require_once(FOOTER);
-?>
+