From 2faf8529f306490b6cdc3b6a10f3e10c29fab154 Mon Sep 17 00:00:00 2001 From: Angelo Naselli Date: Thu, 5 Jun 2014 22:45:39 +0200 Subject: Cleaned up --- lib/AdminPanel/Category.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib') 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; -- cgit v1.2.1