fix "scalar" error message
This commit is contained in:
@@ -104,11 +104,12 @@ if ($serendipity['GET']['adminAction'] == 'edit' || isset($_POST['NEW']) || $ser
|
|||||||
$data['allplugins'] = $allplugins;
|
$data['allplugins'] = $allplugins;
|
||||||
foreach($allplugins AS $plugid => $currentplugin) {
|
foreach($allplugins AS $plugid => $currentplugin) {
|
||||||
foreach($currentplugin['b']->properties['event_hooks'] AS $hook => $set) {
|
foreach($currentplugin['b']->properties['event_hooks'] AS $hook => $set) {
|
||||||
$allhooks[$hook] = true;
|
$allhooks[$hook] = array();
|
||||||
}
|
}
|
||||||
$data['allplugins'][$plugid]['has_permission'] = serendipity_hasPluginPermissions($plugid, $from['id']);
|
$data['allplugins'][$plugid]['has_permission'] = serendipity_hasPluginPermissions($plugid, $from['id']);
|
||||||
}
|
}
|
||||||
ksort($allhooks);
|
ksort($allhooks);
|
||||||
|
|
||||||
$data['allhooks'] = $allhooks;
|
$data['allhooks'] = $allhooks;
|
||||||
foreach($allhooks AS $hook => $set) {
|
foreach($allhooks AS $hook => $set) {
|
||||||
$data['allhooks'][$hook]['has_permission'] = serendipity_hasPluginPermissions($hook, $from['id']);
|
$data['allhooks'][$hook]['has_permission'] = serendipity_hasPluginPermissions($hook, $from['id']);
|
||||||
|
|||||||
Reference in New Issue
Block a user