Skip to content
This repository has been archived by the owner on Mar 19, 2021. It is now read-only.

Commit

Permalink
Fix: Used empty() on a function instead of a variable
Browse files Browse the repository at this point in the history
  • Loading branch information
fbergkemper committed May 3, 2016
1 parent 8acdb06 commit cbffcf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion module/Auth/src/Auth/Controller/AuthController.php
Expand Up @@ -83,7 +83,7 @@ public function loginAction()
$_SESSION['bareos']['locale'] = $locale;
$_SESSION['bareos']['idletime'] = time();

if(!empty($this->params()->fromQuery('req'))) {
if($this->params()->fromQuery('req')) {
return $this->redirect()->toUrl($this->params()->fromQuery('req'));
}
else {
Expand Down

0 comments on commit cbffcf7

Please sign in to comment.