diff options
| author | Cassio de Campos <cassiopc@gmail.com> | 2017-08-10 10:49:24 +0000 |
|---|---|---|
| committer | Cassio de Campos <cassiopc@gmail.com> | 2017-08-10 10:49:24 +0000 |
| commit | e926ad94df156c2a58e35e24d25229e0ab041aae (patch) | |
| tree | 38db549a3337693aefe30e99582383d5e853e2f9 /src/admin/report | |
| parent | 02b4aacc81613792b0fa618692145dc1e2989e42 (diff) | |
| parent | 94c6cd12dacf9de46051c57e6f6bf216e86c8df8 (diff) | |
| download | boca-e926ad94df156c2a58e35e24d25229e0ab041aae.tar.gz boca-e926ad94df156c2a58e35e24d25229e0ab041aae.zip | |
Merge branch 'master' of github.com:cassiopc/boca
Diffstat (limited to 'src/admin/report')
| -rw-r--r-- | src/admin/report/stat.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/admin/report/stat.php b/src/admin/report/stat.php index 1abfa71..8a706e4 100644 --- a/src/admin/report/stat.php +++ b/src/admin/report/stat.php @@ -300,7 +300,7 @@ while (list($keya, $val) = each($d['timestamp'])) { $str="Runs by Time Period" . chr(1) . $m; $atual=0; for($pos=0; $pos<$vezes; $pos++) { - if($res[$pos]=="") $res[$pos] = 0; + if(!isset($res[$pos]) || $res[$pos]=="") $res[$pos] = 0; $q = (int) ($atual/60); $atual += $passo; $qq = (int) ($atual/60); @@ -330,7 +330,7 @@ while (list($keya, $val) = each($d['timestampyes'])) { $str="Accepted Runs by Time Period" . chr(1) . $m; $atual=0; for($pos=0; $pos<$vezes; $pos++) { - if($res[$pos]=="") $res[$pos] = 0; + if(!isset($res[$pos]) || $res[$pos]=="") $res[$pos] = 0; $q = (int) ($atual/60); $atual += $passo; $qq = (int) ($atual/60); |