Commit 93f8e493 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Fix warnings during installation


Signed-off-by: default avatarRichard Mansfield <richard.mansfield@catalyst.net.nz>
parent 658a6927
......@@ -1144,7 +1144,14 @@ function plugins_installed($plugintype, $all=false) {
if (defined('INSTALLER') || !isset($records[$plugintype][true])) {
$sort = $plugintype == 'blocktype' ? 'artefactplugin,name' : 'name';
$records[$plugintype][true] = get_records_assoc($plugintype . '_installed', '', '', $sort);
if ($rs = get_records_assoc($plugintype . '_installed', '', '', $sort)) {
$records[$plugintype][true] = $rs;
}
else {
$records[$plugintype][true] = array();
}
$records[$plugintype][false] = array();
foreach ($records[$plugintype][true] as $r) {
if ($r->active) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment