[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] property/inc class.socommon.inc.php,1.13
From: |
sigurdne |
Subject: |
[Phpgroupware-cvs] property/inc class.socommon.inc.php,1.13 |
Date: |
Thu, 10 Nov 2005 22:08:00 +0100 |
Update of property/inc
Modified Files:
Branch: MAIN
class.socommon.inc.php lines: +16 -13
Log Message:
no message
====================================================
Index: property/inc/class.socommon.inc.php
diff -u property/inc/class.socommon.inc.php:1.12
property/inc/class.socommon.inc.php:1.13
--- property/inc/class.socommon.inc.php:1.12 Wed Nov 2 11:55:03 2005
+++ property/inc/class.socommon.inc.php Thu Nov 10 21:08:23 2005
@@ -132,20 +132,23 @@
$in_list[] = $accounts[$i];
}
- $sql = 'SELECT * FROM phpgw_accounts where account_id
in ('. implode(',',$in_list) . ') order by account_lastname';
- $this->db->query($sql,__LINE__,__FILE__);
- while ($this->db->next_record())
+ if($in_list)
{
- $employees[] = Array(
- 'account_id' =>
$this->db->f('account_id'),
- 'account_lid' =>
$this->db->f('account_lid'),
- 'account_type' =>
$this->db->f('account_type'),
- 'account_firstname' =>
$this->db->f('account_firstname'),
- 'account_lastname' =>
$this->db->f('account_lastname'),
- 'account_status' =>
$this->db->f('account_status'),
- 'account_expires' =>
$this->db->f('account_expires')
- );
+ $sql = 'SELECT * FROM phpgw_accounts where
account_id in ('. implode(',',$in_list) . ') order by account_lastname';
+ $this->db->query($sql,__LINE__,__FILE__);
+ while ($this->db->next_record())
+ {
+ $employees[] = Array(
+ 'account_id' =>
$this->db->f('account_id'),
+ 'account_lid' =>
$this->db->f('account_lid'),
+ 'account_type' =>
$this->db->f('account_type'),
+ 'account_firstname' =>
$this->db->f('account_firstname'),
+ 'account_lastname' =>
$this->db->f('account_lastname'),
+ 'account_status' =>
$this->db->f('account_status'),
+ 'account_expires' =>
$this->db->f('account_expires')
+ );
+ }
}
/* for ($i=0;$i<$k;$i++)
{
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] property/inc class.socommon.inc.php,1.13,
sigurdne <=