the default value for $accountid has to be '', as get_account_id returns all integer (0 too) unchanged

This commit is contained in:
Ralf Becker 2005-03-12 17:55:48 +00:00
parent 29a75560a1
commit 7288defaaf

View File

@ -69,7 +69,7 @@
* @example acl->acl(5); // 5 is the user id <br> * @example acl->acl(5); // 5 is the user id <br>
* @param int $account_id int-the user id * @param int $account_id int-the user id
*/ */
function acl($account_id = 0) function acl($account_id = '')
{ {
$this->db = clone($GLOBALS['egw']->db); $this->db = clone($GLOBALS['egw']->db);
$this->db->set_app('phpgwapi'); $this->db->set_app('phpgwapi');
@ -394,7 +394,7 @@
* @param int/boolean $account_id account id, default 0=$this->account_id, or false to delete all entries for $app/$location * @param int/boolean $account_id account id, default 0=$this->account_id, or false to delete all entries for $app/$location
* @return int number of rows deleted * @return int number of rows deleted
*/ */
function delete_repository($app, $location, $accountid=0) function delete_repository($app, $location, $accountid='')
{ {
static $cache_accountid; static $cache_accountid;
@ -426,7 +426,7 @@
* @param int $account_id account id defaults to $GLOBALS['egw_info']['user']['account_id']; * @param int $account_id account id defaults to $GLOBALS['egw_info']['user']['account_id'];
* @return array/boolean false if there are no matching row in the db, else array with app-names * @return array/boolean false if there are no matching row in the db, else array with app-names
*/ */
function get_app_list_for_id($location, $required, $accountid = 0) function get_app_list_for_id($location, $required, $accountid = '')
{ {
static $cache_accountid; static $cache_accountid;
@ -466,10 +466,10 @@
* *
* @param string $app app * @param string $app app
* @param int $required required rights * @param int $required required rights
* @param int $account_id optional defaults to $GLOBALS['egw_info']['user']['account_id']; * @param int $accountid optional defaults to $GLOBALS['egw_info']['user']['account_id'];
* @return array/boolean false if there are no matching rows in the db or array with location-strings * @return array/boolean false if there are no matching rows in the db or array with location-strings
*/ */
function get_location_list_for_id($app, $required, $accountid = 0) function get_location_list_for_id($app, $required, $accountid = '')
{ {
static $cache_accountid; static $cache_accountid;
@ -531,7 +531,7 @@
* @param int $account_id optional defaults to $GLOBALS['egw_info']['user']['account_id']; * @param int $account_id optional defaults to $GLOBALS['egw_info']['user']['account_id'];
* @return boolean/array containing list of apps or false if there are none * @return boolean/array containing list of apps or false if there are none
*/ */
function get_user_applications($accountid = 0) function get_user_applications($accountid = '')
{ {
static $cache_accountid; static $cache_accountid;