]> git.mxchange.org Git - friendica.git/commitdiff
Add missing dba::inArray to Addon::reload
authorHypolite Petovan <mrpetovan@gmail.com>
Tue, 23 Jan 2018 23:57:33 +0000 (18:57 -0500)
committerHypolite Petovan <mrpetovan@gmail.com>
Tue, 23 Jan 2018 23:57:33 +0000 (18:57 -0500)
src/Core/Addon.php

index af3d843a9ad79bca639148d8b5ec36095285eac3..b1f401d28b42aaac2bdb19ce9c7ffa70318b777a 100644 (file)
@@ -4,10 +4,9 @@
  */\r
 namespace Friendica\Core;\r
 \r
-use Friendica\App;\r
 use Friendica\Core\Config;\r
-use Friendica\Core\System;\r
 use Friendica\Database\DBM;\r
+\r
 use dba;\r
 \r
 require_once 'include/dba.php';\r
@@ -83,7 +82,7 @@ class Addon
                if (strlen($addons)) {\r
                        $r = dba::select('addon', [], ['installed' => 1]);\r
                        if (DBM::is_result($r)) {\r
-                               $installed = $r;\r
+                               $installed = dba::inArray($r);\r
                        } else {\r
                                $installed = [];\r
                        }\r