mirror of
https://github.com/friendica/friendica
synced 2025-04-25 19:50:12 +00:00
Merge branch 'rewrites/dbm_is_result' into develop
This commit is contained in:
commit
dac1dbd3e9
11 changed files with 20 additions and 19 deletions
|
@ -129,7 +129,7 @@ function reload_plugins() {
|
|||
*/
|
||||
function plugin_enabled($plugin) {
|
||||
$r = q("SELECT * FROM `addon` WHERE `installed` = 1 AND `name` = '%s'", $plugin);
|
||||
return((bool)(count($r) > 0));
|
||||
return ((dbm::is_result($r)) && (count($r) > 0));
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue