if($method) and if(!$method) mean very different things!
This commit is contained in:
parent
2166de27fd
commit
d63120e29d
@ -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"});
|
||||
|
Loading…
x
Reference in New Issue
Block a user