if($method) and if(!$method) mean very different things!

This commit is contained in:
Chris 2012-03-19 13:02:47 +00:00
parent 2166de27fd
commit d63120e29d

View File

@ -116,7 +116,7 @@ sub load_method {
or die_log($self -> {"cgi"} -> remote_host(), "Unable to execute auth method lookup query: ".$self -> {"dbh"} -> errstr);
my $module = $moduleh -> fetchrow_hashref();
return $self -> self_error("Unknown auth method requested in load_method($method_id)") if($module);
return $self -> self_error("Unknown auth method requested in load_method($method_id)") if(!$module);
# Is the module active? If not, do nothing
return undef if(!$module -> {"enabled"});