@@ -124,7 +124,7 @@ discard block |
||
| 124 | 124 | $this->acl = $acl; |
| 125 | 125 | |
| 126 | 126 | // Initialize from midgard |
| 127 | - if ( midcom_connection::get_user() |
|
| 127 | + if (midcom_connection::get_user() |
|
| 128 | 128 | && $user = $this->get_user(midcom_connection::get_user())) { |
| 129 | 129 | $this->set_user($user); |
| 130 | 130 | } |
@@ -263,7 +263,7 @@ discard block |
||
| 263 | 263 | return true; |
| 264 | 264 | } |
| 265 | 265 | if ($user === null) { |
| 266 | - $user =& $this->user; |
|
| 266 | + $user = & $this->user; |
|
| 267 | 267 | } |
| 268 | 268 | |
| 269 | 269 | if ($user == 'EVERYONE') { |
@@ -470,7 +470,7 @@ discard block |
||
| 470 | 470 | public function require_admin_or_ip($domain) : bool |
| 471 | 471 | { |
| 472 | 472 | $ips = midcom::get()->config->get('indexer_reindex_allowed_ips'); |
| 473 | - if ( $ips |
|
| 473 | + if ($ips |
|
| 474 | 474 | && in_array($_SERVER['REMOTE_ADDR'], $ips)) { |
| 475 | 475 | if (!$this->request_sudo($domain)) { |
| 476 | 476 | throw new midcom_error('Failed to acquire SUDO rights. Aborting.'); |