init() must not be called on objects

environments/ppa-mbqj77/deployments/1
Xavier Guimard 10 years ago
parent 1b514714d6
commit 2b35cb6e04
  1. 6
      lemonldap-ng-common/lib/Lemonldap/NG/Common/PSGI.pm

@ -186,8 +186,10 @@ sub sendHtml {
sub run {
my ( $self, $args ) = splice @_;
$self = $self->new($args) unless ref($self);
return $self->abort( $self->error ) unless ( $self->init($args) );
unless ( ref $self ) {
$self = $self->new($args);
return $self->abort( $self->error ) unless ( $self->init($args) );
}
return $self->_run;
}

Loading…
Cancel
Save