]> git.mxchange.org Git - friendica.git/commitdiff
Used new select function
authorPhilipp Holzer <admin@philipp.info>
Fri, 5 Oct 2018 23:21:05 +0000 (01:21 +0200)
committerPhilipp Holzer <admin@philipp.info>
Fri, 5 Oct 2018 23:21:05 +0000 (01:21 +0200)
src/Core/Addon.php

index aa3a403f909b55092dc0fc601f29361fc5d60628..d5a7a6f1b4d853b7d96f810daa63ff1fb23b655c 100644 (file)
@@ -31,9 +31,9 @@ class Addon extends BaseObject
        {
                $a = self::getApp();
 
-               $r = q("SELECT * FROM `addon` WHERE `installed` = 1");
+               $r = DBA::select('addon', [], ['installed' => 1]);
                if (DBA::isResult($r)) {
-                       $installed = $r;
+                       $installed = DBA::toArray($r);
                } else {
                        $installed = [];
                }