aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorM.Dent <dentm42@dm42.net>2018-08-29 10:02:04 -0400
committerM.Dent <dentm42@dm42.net>2018-08-29 10:02:04 -0400
commit70d6d2f2db21c001b8f56a86339a005fbad81ebd (patch)
treef886cee5826860682d4935844c1fc4d499e11039 /include
parent74d80473df46f16e3d5ac840648f491588bdbd1f (diff)
downloadvolse-hubzilla-70d6d2f2db21c001b8f56a86339a005fbad81ebd.tar.gz
volse-hubzilla-70d6d2f2db21c001b8f56a86339a005fbad81ebd.tar.bz2
volse-hubzilla-70d6d2f2db21c001b8f56a86339a005fbad81ebd.zip
Micro-optimization to call_hooks()
Diffstat (limited to 'include')
-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])