refactor global array

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2018-12-21 20:31:17 +01:00
parent 5fa0f4b87e
commit c5a58e3f36
68 changed files with 646 additions and 613 deletions

View File

@@ -64,7 +64,7 @@ if (! is_null($month) && ! is_null($year)) {
GROUP BY `day`
ORDER BY `day` DESC");
$params = array(
"customerid" => $userinfo['customerid'],
"customerid" => \Froxlor\User::getAll()['customerid'],
"month" => $month,
"year" => $year
);
@@ -118,7 +118,7 @@ if (! is_null($month) && ! is_null($year)) {
GROUP BY `year` DESC, `month` DESC
LIMIT 12");
Database::pexecute($result_stmt, array(
"customerid" => $userinfo['customerid']
"customerid" => \Froxlor\User::getAll()['customerid']
));
$traffic_complete['http'] = 0;
$traffic_complete['ftp'] = 0;