fix Database connection [default] not configured

This commit is contained in:
xiaomlove
2022-06-12 21:32:15 +08:00
parent 43156f7fc5
commit 024ef8b665
4 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -4059,7 +4059,7 @@ function get_category_row($catid = NULL)
{
global $Cache;
static $rows;
if (!$rows && !$rows = $Cache->get_value('category_content')){
if (!$rows && !$rows = (array)$Cache->get_value('category_content')){
$res = sql_query("SELECT categories.*, searchbox.name AS catmodename FROM categories LEFT JOIN searchbox ON categories.mode=searchbox.id");
while($row = mysql_fetch_array($res)) {
$rows[$row['id']] = $row;