aboutsummaryrefslogtreecommitdiffstats
path: root/lib/AdminPanel/Category.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/AdminPanel/Category.pm')
-rw-r--r--lib/AdminPanel/Category.pm10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/AdminPanel/Category.pm b/lib/AdminPanel/Category.pm
index 825e6cd..63c23b1 100644
--- a/lib/AdminPanel/Category.pm
+++ b/lib/AdminPanel/Category.pm
@@ -51,10 +51,10 @@ use yui;
sub new {
my ($class, $newName, $newIcon) = @_;
my $self = {
- my $name = 0,
- my $button = 0,
- my $icon = 0,
- my $modules = 0
+ name => 0,
+ button => 0,
+ icon => 0,
+ modules => [],
};
bless $self, 'AdminPanel::Category';
@@ -128,7 +128,7 @@ sub moduleLoaded {
my $present = 0;
- if (!$module_name) {
+ if (!$module_name || ! $self->{modules}) {
return $present;
}