fix php errors and deprecation warnings

This commit is contained in:
Mario Vavti
2023-12-31 09:55:27 +01:00
parent ae3db366e5
commit 62db8c3969
4 changed files with 7 additions and 6 deletions

View File

@@ -190,7 +190,7 @@ function reload_plugins() {
$plugins = get_config('system', 'addon');
if(strlen($plugins)) {
$r = dbq("SELECT * FROM addon WHERE installed = 1");
if(count($r))
if($r)
$installed = $r;
else
$installed = array();