This commit is contained in:
Jean-Christian Denis 2023-04-06 23:32:34 +02:00
parent 7bc5d8989f
commit cec53147c0
Signed by: JcDenis
GPG key ID: 1B5B8C5B90B6C951
2 changed files with 3 additions and 3 deletions

View file

@ -108,9 +108,9 @@ class Core
if ($rs->isEmpty()) { if ($rs->isEmpty()) {
return []; return [];
} }
dcCore::app()->log->delLogs($rs->__get('log_id')); dcCore::app()->log->delLogs($rs->f('log_id'));
$res = json_decode($rs->__get('log_msg'), true); $res = json_decode($rs->f('log_msg'), true);
return is_array($res) ? $res : []; return is_array($res) ? $res : [];
} }

View file

@ -129,7 +129,7 @@ class Manage extends dcNsProcess
} }
$combo_modules = []; $combo_modules = [];
$modules = self::$type == 'plugin' ? dcCore::app()->plugins->getDefines() : dcCore::app()->themes->getDefines(); $modules = self::$type == 'plugin' ? dcCore::app()->plugins->getDefines() : dcCore::app()->themes->getDefines();
if (dcCore::app()->blog->settings->get(My::id())->get('combosortby') == 'id') { if (dcCore::app()->blog->settings->get(My::id())->get('combosortby') == 'id') {
uasort($modules, fn ($a, $b) => strtolower($a->getId()) <=> strtolower($b->getId())); uasort($modules, fn ($a, $b) => strtolower($a->getId()) <=> strtolower($b->getId()));
} else { } else {