Used new select function
This commit is contained in:
parent
d72473fd51
commit
eb1a257224
|
@ -31,9 +31,9 @@ class Addon extends BaseObject
|
||||||
{
|
{
|
||||||
$a = self::getApp();
|
$a = self::getApp();
|
||||||
|
|
||||||
$r = q("SELECT * FROM `addon` WHERE `installed` = 1");
|
$r = DBA::select('addon', [], ['installed' => 1]);
|
||||||
if (DBA::isResult($r)) {
|
if (DBA::isResult($r)) {
|
||||||
$installed = $r;
|
$installed = DBA::toArray($r);
|
||||||
} else {
|
} else {
|
||||||
$installed = [];
|
$installed = [];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue