Kaydet (Commit) a09e5752 authored tarafından Vladimir Glazounov's avatar Vladimir Glazounov

#100000# get rid of warning

üst a8ad2983
......@@ -2,9 +2,9 @@
#
# $RCSfile: Cws.pm,v $
#
# $Revision: 1.3 $
# $Revision: 1.4 $
#
# last change: $Author: rt $ $Date: 2004-07-09 13:54:05 $
# last change: $Author: vg $ $Date: 2004-07-27 14:08:15 $
#
# The Contents of this file are made available subject to the terms of
# either of the following licenses
......@@ -231,7 +231,7 @@ sub add_module
my $public = shift;
my $items_ref = $self->add_items('modules', $public, $module);
if ( $items_ref->[0] eq $module ) {
if (defined ($items_ref->[0]) && ($items_ref->[0] eq $module)) {
return 1; # module has been added
}
elsif ( defined($items_ref) ) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment