Forgotten line for a case of empty category

This commit is contained in:
Juribiyan 2020-06-02 22:20:01 +05:00
parent 754ae3deec
commit 751b61bf2c
1 changed files with 1 additions and 0 deletions

View File

@ -765,6 +765,7 @@ class Board {
$boards[$line['id']]['nick'] = htmlspecialchars($line['name']);
$boards[$line['id']]['abbreviation'] = htmlspecialchars($line['abbreviation']);
$results2 = $tc_db->GetAll("SELECT * FROM `" . KU_DBPREFIX . "boards` WHERE `section` = '" . $line['id'] . "' AND `hidden` != 1 ORDER BY `order` ASC, `name` ASC");
$boards[$line['id']]['isempty'] = empty($results2);
foreach($results2 AS $line2) {
$boards[$line['id']][$line2['id']]['name'] = htmlspecialchars($line2['name']);
$boards[$line['id']][$line2['id']]['desc'] = htmlspecialchars($line2['desc']);