aboutsummaryrefslogtreecommitdiffstats
path: root/include/plugin.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2018-08-30 10:09:00 +0200
committerMario <mario@mariovavti.com>2018-08-30 10:09:00 +0200
commitc5ce9b069963edacdc4ee961c0c8632b71244d13 (patch)
treefa8e49ed69641962d41b8a379d68e0ad86c52ee9 /include/plugin.php
parentc74a7ce4fc089e611ea9c963e1bb1b5c82180882 (diff)
parent70d6d2f2db21c001b8f56a86339a005fbad81ebd (diff)
downloadvolse-hubzilla-c5ce9b069963edacdc4ee961c0c8632b71244d13.tar.gz
volse-hubzilla-c5ce9b069963edacdc4ee961c0c8632b71244d13.tar.bz2
volse-hubzilla-c5ce9b069963edacdc4ee961c0c8632b71244d13.zip
Merge branch 'call-hooks-optimization' into 'dev'
Micro-optimization to call_hooks() See merge request hubzilla/core!1267
Diffstat (limited to 'include/plugin.php')
-rwxr-xr-xinclude/plugin.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/plugin.php b/include/plugin.php
index 23cb2b5f6..ea3c67c2f 100755
--- a/include/plugin.php
+++ b/include/plugin.php
@@ -432,7 +432,7 @@ function insert_hook($hook, $fn, $version = 0, $priority = 0) {
function call_hooks($name, &$data = null) {
$a = 0;
- if((is_array(App::$hooks)) && (array_key_exists($name, App::$hooks))) {
+ if (isset(App::$hooks[$name])) {
foreach(App::$hooks[$name] as $hook) {
$origfn = $hook[1];
if($hook[0])