- fixing undefined variables in customer_mysql.php

- fixing "only variables should be passed by reference" warning in customer_traffic.php
- removed unneeded require() in customer_aps.php, refs #6
- added missing field in sql-query in class.ticket.php
This commit is contained in:
Michael Kaufmann (d00p)
2010-02-05 08:36:35 +00:00
parent 8dcade976d
commit 2378d4319c
4 changed files with 5 additions and 4 deletions

View File

@@ -75,7 +75,8 @@ if(!is_null($month)
WHERE `customerid`='" . $userinfo['customerid'] . "'
AND `month` = '" . $month . "'
AND `year` = '" . $year . "'");
rsort($row = mysql_fetch_row($result));
$row = mysql_fetch_row($result);
rsort($row);
$traf['max'] = ($row[0] > $row[1] ? ($row[0] > $row[2] ? $row[0] : $row[2]) : ($row[1] > $row[2] ? $row[1] : $row[2]));;
$result = $db->query("SELECT
SUM(`http`) as 'http', SUM(`ftp_up`) AS 'ftp_up', SUM(`ftp_down`) as 'ftp_down', SUM(`mail`) as 'mail',