From: Philipp Holzer Date: Fri, 5 Oct 2018 23:21:05 +0000 (+0200) Subject: Used new select function X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=eb1a2572249e7257ebe8e814657f42702571df24;p=friendica.git Used new select function --- diff --git a/src/Core/Addon.php b/src/Core/Addon.php index aa3a403f90..d5a7a6f1b4 100644 --- a/src/Core/Addon.php +++ b/src/Core/Addon.php @@ -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 = []; }