This commit is contained in:
Egil Moeller 2012-06-05 13:32:33 +02:00
parent cf2f0b72a3
commit 3338db9485
2 changed files with 31 additions and 1 deletions

View file

@ -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);
});