diff --git a/phpgwapi/inc/class.common.inc.php b/phpgwapi/inc/class.common.inc.php index 9db7cd0e17..8f835b79c9 100644 --- a/phpgwapi/inc/class.common.inc.php +++ b/phpgwapi/inc/class.common.inc.php @@ -169,8 +169,10 @@ if(empty($_globalUid)) return false; $globalUidParts = explode('-',$_globalUid); + array_shift($globalUidParts); // remove the app name + array_pop($globalUidParts); // remove the install_id - return $globalUidParts[1]; + return explode('-',$globalUidParts); // return the rest, allowing to have dashs in the id, can happen with LDAP! } // This is used for searching the access fields