Fixed a warning I missed and a typo.

This commit is contained in:
Elijah Perrault committed 2011-01-21 18:58:14 -07:00
1 parent 9b6eecb797
commit dbfde5c33b
2 files changed
+2 -7

No files matched your search

+1 -6
View File
@@ -139,12 +139,7 @@ sub event_run
if (defined $EVENTS{lc($event)} and defined $HOOKS{lc($event)}) {
foreach my $hk (keys %{ $HOOKS{lc($event)} }) {
if (defined @args) {
&{ $HOOKS{lc($event)}{$hk} }(@args);
}
else {
&{ $HOOKS{lc($event)}{$hk} }();
}
&{ $HOOKS{lc($event)}{$hk} }(@args);
}
}