summaryrefslogtreecommitdiff
path: root/src/static/js/pluginfw/hooks.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/static/js/pluginfw/hooks.js')
-rw-r--r--src/static/js/pluginfw/hooks.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/static/js/pluginfw/hooks.js b/src/static/js/pluginfw/hooks.js
index 49e46c60..7281cac9 100644
--- a/src/static/js/pluginfw/hooks.js
+++ b/src/static/js/pluginfw/hooks.js
@@ -102,7 +102,7 @@ exports.aCallAll = function (hook_name, args, cb) {
exports.callFirst = function (hook_name, args) {
if (!args) args = {};
- if (plugins.hooks[hook_name][0] === undefined) return [];
+ if (plugins.hooks[hook_name] === undefined) return [];
return exports.syncMapFirst(plugins.hooks[hook_name], function (hook) {
return hookCallWrapper(hook, hook_name, args);
});