Used new select function

This commit is contained in:
Philipp Holzer 2018-10-06 01:21:05 +02:00
parent d72473fd51
commit eb1a257224
No known key found for this signature in database
GPG key ID: 517BE60E2CE5C8A5

View 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 = [];
}