aboutsummaryrefslogtreecommitdiffstats
path: root/Category.pm
diff options
context:
space:
mode:
Diffstat (limited to 'Category.pm')
-rw-r--r--Category.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/Category.pm b/Category.pm
index 69eafc63..7191fabe 100644
--- a/Category.pm
+++ b/Category.pm
@@ -68,9 +68,10 @@ sub new {
#=============================================================
sub loadModule {
my ($self, $module) = @_;
-
+
if (!$self->moduleLoaded($module)) {
push ( @{$self->{modules}}, $module );
+
return 1;
}
return 0;