| 42 |
|
$report = $value; |
| 43 |
|
|
| 44 |
|
$value = getPregMatch($value, $input); |
| 45 |
< |
if (empty($value)) { |
| 45 |
> |
if (!isset($value)) { |
| 46 |
|
$value = "<i><font color=\"#999999\">not sent</font></i>"; |
| 47 |
|
} |
| 48 |
|
?> |
| 109 |
|
if (!is_int($max)) { |
| 110 |
|
$max = getPregMatch($max, $input); |
| 111 |
|
} |
| 112 |
< |
if (empty($value) || empty($max)) { |
| 112 |
> |
if (!isset($value) || !isset($max)) { |
| 113 |
|
return; |
| 114 |
|
} |
| 115 |
|
|
| 117 |
|
$value = $max - $value; |
| 118 |
|
} |
| 119 |
|
|
| 120 |
< |
$width = intval($max_width * $value / $max); |
| 121 |
< |
|
| 122 |
< |
if ($width < 1) { |
| 120 |
> |
if(empty($max)) { |
| 121 |
|
$width = 1; |
| 122 |
|
} |
| 123 |
+ |
else { |
| 124 |
+ |
$width = intval($max_width * $value / $max); |
| 125 |
+ |
if ($width < 1) { |
| 126 |
+ |
$width = 1; |
| 127 |
+ |
} |
| 128 |
+ |
} |
| 129 |
|
|
| 130 |
|
?> |
| 131 |
|
<table border="0" cellpadding="0" cellspacing="0" align="center"> |
| 217 |
|
$input = $input[0]; |
| 218 |
|
} |
| 219 |
|
|
| 220 |
< |
if (empty($input)) { |
| 220 |
> |
if (!isset($input)) { |
| 221 |
|
echo "<br><br>There are currently no latest details about <b>$machine</b>. Please notify your i-scream server administrator if you believe this to be incorrect."; |
| 222 |
|
} |
| 223 |
|
else { |