mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-15 05:00:49 +08:00
fix Database connection [default] not configured
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
defined('VERSION_NUMBER') || define('VERSION_NUMBER', '1.7.14');
|
||||
defined('RELEASE_DATE') || define('RELEASE_DATE', '2022-06-11');
|
||||
defined('VERSION_NUMBER') || define('VERSION_NUMBER', '1.7.15');
|
||||
defined('RELEASE_DATE') || define('RELEASE_DATE', '2022-06-12');
|
||||
defined('IN_TRACKER') || define('IN_TRACKER', true);
|
||||
defined('PROJECTNAME') || define("PROJECTNAME","NexusPHP");
|
||||
defined('NEXUSPHPURL') || define("NEXUSPHPURL","https://nexusphp.org");
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user