aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/AdminPanel/Category.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/AdminPanel/Category.pm b/lib/AdminPanel/Category.pm
index 2e72c28a..825e6cd0 100644
--- a/lib/AdminPanel/Category.pm
+++ b/lib/AdminPanel/Category.pm
@@ -120,8 +120,11 @@ sub loadModule {
#=============================================================
sub moduleLoaded {
my $self = shift;
- my (%params) = @_;
my ($module_name) = @_;
+ my %params = ();
+ if ($module_name eq '-CLASS') {
+ (%params) = @_;
+ }
my $present = 0;