@@ -238,7 +238,7 @@ discard block |
||
| 238 | 238 | return true; |
| 239 | 239 | } |
| 240 | 240 | if ($user === null) { |
| 241 | - $user =& $this->user; |
|
| 241 | + $user = & $this->user; |
|
| 242 | 242 | } |
| 243 | 243 | |
| 244 | 244 | if ($user == 'EVERYONE') { |
@@ -435,7 +435,7 @@ discard block |
||
| 435 | 435 | public function require_admin_or_ip(string $domain) : bool |
| 436 | 436 | { |
| 437 | 437 | $ips = midcom::get()->config->get('indexer_reindex_allowed_ips'); |
| 438 | - if ( $ips |
|
| 438 | + if ($ips |
|
| 439 | 439 | && in_array($_SERVER['REMOTE_ADDR'], $ips)) { |
| 440 | 440 | if (!$this->request_sudo($domain)) { |
| 441 | 441 | throw new midcom_error('Failed to acquire SUDO rights. Aborting.'); |