@@ -44,7 +44,8 @@ |
||
| 44 | 44 | $userObj = User::getByUsername($filterUser, $database); |
| 45 | 45 | if ($userObj !== false) { |
| 46 | 46 | $logSearch->byUser($userObj->getId()); |
| 47 | - } else { |
|
| 47 | + } |
|
| 48 | + else { |
|
| 48 | 49 | $logSearch->byUser(-1); |
| 49 | 50 | } |
| 50 | 51 | } |
@@ -72,7 +72,8 @@ |
||
| 72 | 72 | if ($targetVar !== null && preg_match('/^[a-z]+$/', $targetVar)) { |
| 73 | 73 | $data = $targetVar . ' = ' . $data . ';'; |
| 74 | 74 | header("Content-Type: text/javascript"); |
| 75 | - } else { |
|
| 75 | + } |
|
| 76 | + else { |
|
| 76 | 77 | header("Content-Type: application/json"); |
| 77 | 78 | } |
| 78 | 79 | |
@@ -307,8 +307,9 @@ |
||
| 307 | 307 | * |
| 308 | 308 | * @param string $path The path (relative to the application root) of the file |
| 309 | 309 | */ |
| 310 | - final protected function addJs($path){ |
|
| 311 | - if(in_array($path, $this->extraJs)){ |
|
| 310 | + final protected function addJs($path) |
|
| 311 | + { |
|
| 312 | + if(in_array($path, $this->extraJs)) { |
|
| 312 | 313 | // nothing to do |
| 313 | 314 | return; |
| 314 | 315 | } |