Code Duplication    Length = 5-5 lines in 2 locations

api/src/Acl.php 2 locations

@@ 219-223 (lines=5) @@
216
				),false,__LINE__,__FILE__);
217
			}
218
		}
219
		if ($this->account_id == $GLOBALS['egw_info']['user']['account_id'] &&
220
			method_exists($GLOBALS['egw'],'invalidate_session_cache'))	// egw object in setup is limited
221
		{
222
			$GLOBALS['egw']->invalidate_session_cache();
223
		}
224
		return $this->data;
225
	}
226
@@ 363-367 (lines=5) @@
360
			'acl_account'  => $account_id,
361
		),__LINE__,__FILE__);
362
363
		if ($account_id == $GLOBALS['egw_info']['user']['account_id'] &&
364
			method_exists($GLOBALS['egw'],'invalidate_session_cache'))	// egw object in setup is limited
365
		{
366
			$GLOBALS['egw']->invalidate_session_cache();
367
		}
368
		return True;
369
	}
370