Stop PHP from crashing if there aren't enough queries to make a graph

This commit is contained in:
Mcat12
2016-10-30 20:07:17 -04:00
parent c0954d0998
commit 5ec12a91dd
+4
View File
@@ -253,6 +253,10 @@
}
function alignTimeArrays(&$times1, &$times2) {
if(count($times1) == 0 || count($times2) < 2) {
return;
}
$max = max(array_merge(array_keys($times1), array_keys($times2)));
$min = min(array_merge(array_keys($times1), array_keys($times2)));