From e724752600d8d6327d6cd7c63c88f76a1405e9b8 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 24 Aug 2016 16:10:52 +0200 Subject: [PATCH] remove deprecated use of read without id (1. parameter) to accounts class in phpgwapi --- api/src/Accounts.php | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/api/src/Accounts.php b/api/src/Accounts.php index 4f6b01342e..119238ebcd 100644 --- a/api/src/Accounts.php +++ b/api/src/Accounts.php @@ -356,20 +356,15 @@ class Accounts /** * Reads the data of one account * - * It's depricated to use read with out parameter to read the internal data of this class!!! * All key of the returned array use the 'account_' prefix. * For backward compatibility some values are additionaly availible without the prefix, using them is depricated! * - * @param int|string $id numeric account_id or string with account_lid (use of default value of 0 is depricated!!!) + * @param int|string $id numeric account_id or string with account_lid * @param boolean $set_depricated_names =false set _additionaly_ the depricated keys without 'account_' prefix * @return array/boolean array with account data (keys: account_id, account_lid, ...) or false if account not found */ - function read($id=0,$set_depricated_names=false) + function read($id, $set_depricated_names=false) { - if (!$id) // deprecated use!!! - { - return $this->data ? $this->data : $this->read_repository(); - } if (!is_int($id) && !is_numeric($id)) { $id = $this->name2id($id);