[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] phpgwapi/inc/class.accounts.inc.php, 1.15
From: |
nomail |
Subject: |
[Phpgroupware-cvs] phpgwapi/inc/class.accounts.inc.php, 1.15 |
Date: |
Fri, 30 Jul 2004 16:47:19 +0200 |
Update of /phpgwapi/inc
Modified Files:
Branch:
class.accounts.inc.php
date: 2004/07/30 14:47:19; author: fipsfuchs; state: Exp; lines: +4 -5
Log Message:
get_account_data simplified
=====================================================================
Index: phpgwapi/inc/class.accounts.inc.php
diff -u phpgwapi/inc/class.accounts.inc.php:1.14
phpgwapi/inc/class.accounts.inc.php:1.15
--- phpgwapi/inc/class.accounts.inc.php:1.14 Fri Jul 30 12:22:16 2004
+++ phpgwapi/inc/class.accounts.inc.php Fri Jul 30 14:47:19 2004
@@ -100,12 +100,11 @@
{
$this->account_id = $account_id;
$this->read_repository();
-
- $data[$this->data['account_id']]['lid'] =
$this->data[$this->fields[1]];
- $data[$this->data['account_id']]['firstname'] =
$this->data[$this->fields[2]];
- $data[$this->data['account_id']]['lastname'] =
$this->data[$this->fields[3]];
+ for($i = 0; $i < count($this->fields); $i++)
+ {
+
$data[$this->data['account_id']][$this->fields[$i]] =
$this->data[$this->fields[$i]];
+ }
$data[$this->data['account_id']]['fullname'] =
$this->data[$this->fields[2]].' '.$this->data[$this->fields[3]]; //method
build_fullname in api would make more sense
- $data[$this->data['account_id']]['type'] =
$this->data[$this->fields[5]];
return $data;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] phpgwapi/inc/class.accounts.inc.php, 1.15,
nomail <=