mirror of
https://github.com/manuelkasper/AS-Stats.git
synced 2025-02-20 11:44:12 +08:00
Fix PHP warnings
This commit is contained in:
parent
cec7cf2de0
commit
51bda95d72
@ -53,7 +53,7 @@ if ($vertical_label) {
|
||||
$cmd .= "--vertical-label '<- OUT | IN ->' ";
|
||||
}
|
||||
|
||||
if($showtitledetail && $_GET['dname'] != "")
|
||||
if($showtitledetail && @$_GET['dname'] != "")
|
||||
$cmd .= "--title " . escapeshellarg($_GET['dname']) . " ";
|
||||
else
|
||||
if (isset($_GET['v']) && is_numeric($_GET['v']))
|
||||
|
@ -65,9 +65,9 @@ header("Content-Type: image/png");
|
||||
|
||||
$width = $default_graph_width;
|
||||
$height = $default_graph_height;
|
||||
if ($_GET['width'])
|
||||
if (@$_GET['width'])
|
||||
$width = (int)$_GET['width'];
|
||||
if ($_GET['height'])
|
||||
if (@$_GET['height'])
|
||||
$height = (int)$_GET['height'];
|
||||
|
||||
$knownlinks = getknownlinks();
|
||||
@ -89,7 +89,7 @@ $cmd = "$rrdtool graph - " .
|
||||
if (!$compat_rrdtool12)
|
||||
$cmd .= "--full-size-mode ";
|
||||
|
||||
if($showtitledetail && $_GET['dname'] != "")
|
||||
if($showtitledetail && @$_GET['dname'] != "")
|
||||
$cmd .= "--title " . escapeshellarg($_GET['dname']) . " ";
|
||||
else
|
||||
if (isset($_GET['v']) && is_numeric($_GET['v']))
|
||||
|
Loading…
x
Reference in New Issue
Block a user