@@ -325,7 +325,7 @@ discard block |
||
325 | 325 | $this->_inheritance_chains = []; |
326 | 326 | |
327 | 327 | foreach ($this->_direct_groups as $id => $group) { |
328 | - $this->_all_groups[$id] =& $this->_direct_groups[$id]; |
|
328 | + $this->_all_groups[$id] = & $this->_direct_groups[$id]; |
|
329 | 329 | $inheritance_chain = [$group->id]; |
330 | 330 | while ($parent = $group->get_parent_group()) { |
331 | 331 | $this->_all_groups[$parent->id] = $parent; |
@@ -479,7 +479,7 @@ discard block |
||
479 | 479 | |
480 | 480 | $timeout = midcom::get()->config->get('auth_login_session_timeout', 0); |
481 | 481 | $last_seen = $person->get_parameter('midcom', 'online'); |
482 | - if ( !$last_seen |
|
482 | + if (!$last_seen |
|
483 | 483 | || ($timeout > 0 && time() - $timeout > $last_seen)) { |
484 | 484 | return 'offline'; |
485 | 485 | } |
@@ -150,7 +150,7 @@ discard block |
||
150 | 150 | $localpath = $path; |
151 | 151 | $matches['latest_parent'] = $folder_tree['/']; |
152 | 152 | $missing_levels = 0; |
153 | - while ( $localpath |
|
153 | + while ($localpath |
|
154 | 154 | && $localpath != '/') { |
155 | 155 | $localpath = dirname($localpath); |
156 | 156 | $missing_levels++; |
@@ -177,7 +177,7 @@ discard block |
||
177 | 177 | |
178 | 178 | $root_folder = $folder; |
179 | 179 | $max = 100; |
180 | - while ( $folder[MIDCOM_NAV_COMPONENT] == 'net.nemein.wiki' |
|
180 | + while ($folder[MIDCOM_NAV_COMPONENT] == 'net.nemein.wiki' |
|
181 | 181 | && (($parent = $folder[MIDCOM_NAV_NODEID]) != -1) |
182 | 182 | && $max > 0) { |
183 | 183 | $root_folder = $folder; |