diff options
Diffstat (limited to 'Category.pm')
-rw-r--r-- | Category.pm | 3 |
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; |