Bugfix count(null) www/pages

This commit is contained in:
Xenomporio
2022-06-10 11:28:28 +02:00
parent 93e7ee4903
commit eaa3b1da75
53 changed files with 409 additions and 409 deletions
+1 -1
View File
@@ -123,7 +123,7 @@ class Generic {
$data = $this->app->DB->SelectArr("SELECT * FROM accordion ORDER BY position ASC");
$out = '';
for($i=0;$i<count($data);$i++) {
for($i=0;$i<(!empty($data)?count($data):0);$i++) {
$color = (($i%2) ? '#e0e0e0' : '#fff');
$out .= "<tr style=\"background-color:$color\">
<td class=\"gentable\">{$data[$i]['position']}</td>