From 45776131f9b36ac003bc5cf4d89cf9eea0c0fd6d Mon Sep 17 00:00:00 2001 From: kanoi Date: Thu, 11 Sep 2014 15:58:34 +1000 Subject: [PATCH] php - pass user to getAllUsers() --- pool/db.php | 2 +- pool/page_allwork.php | 2 +- pool/page_stats.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pool/db.php b/pool/db.php index 14688111..af562cea 100644 --- a/pool/db.php +++ b/pool/db.php @@ -166,7 +166,7 @@ function userSettings($user, $email = null, $addr = null, $pass = null) return repDecode($rep); } # -function getAllUsers() +function getAllUsers($user) { $flds = array(); $msg = msgEncode('allusers', 'all', $flds); diff --git a/pool/page_allwork.php b/pool/page_allwork.php index ac1d9471..15e35a3e 100644 --- a/pool/page_allwork.php +++ b/pool/page_allwork.php @@ -16,7 +16,7 @@ function doallwork($data, $user) $pg .= worktitle($data, $user); - $ans = getAllUsers(); + $ans = getAllUsers($user); if ($ans['STATUS'] == 'ok') { $count = $ans['rows']; diff --git a/pool/page_stats.php b/pool/page_stats.php index 7a6190db..7b27d35c 100644 --- a/pool/page_stats.php +++ b/pool/page_stats.php @@ -12,7 +12,7 @@ function dostats($data, $user) { $pg = '

Pool Stats

'; - $ans = getAllUsers(); + $ans = getAllUsers($user); $pg .= "\n"; $pg .= "";