diff --git a/phpgwapi/inc/class.accounts.inc.php b/phpgwapi/inc/class.accounts.inc.php index 8b35975591..c73c367508 100644 --- a/phpgwapi/inc/class.accounts.inc.php +++ b/phpgwapi/inc/class.accounts.inc.php @@ -289,7 +289,8 @@ class accounts $valid = array(); if ($app) { - $valid = $this->split_accounts($app,$param['type'] == 'both' ? 'merge' : $param['type']); + // we want the result merged, whatever it takes, as we only care for the ids + $valid = $this->split_accounts($app,'merge');//$param['type'] == 'both' ? 'merge' : $param['type']); } if ($group) { @@ -297,7 +298,7 @@ class accounts if (!$members) $members = array(); $valid = !$app ? $members : array_intersect($valid,$members); // use the intersection } - //echo "
limiting result to app='app' and/or group=$group valid-ids=".print_r($valid,true)."
\n"; + //echo "limiting result to app='$app' and/or group=$group valid-ids=".print_r($valid,true)."
\n"; $offset = $param['offset'] ? $param['offset'] : $GLOBALS['egw_info']['user']['preferences']['common']['maxmatchs']; $stop = $start + $offset; $n = 0;