phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] [19018] Fix the is_contact methods, lots of work rema


From: Caeies
Subject: [Phpgroupware-cvs] [19018] Fix the is_contact methods, lots of work remaining
Date: Wed, 10 Dec 2008 17:49:21 +0000

Revision: 19018
          
http://svn.sv.gnu.org/viewvc/?view=rev&root=phpgroupware&revision=19018
Author:   Caeies
Date:     2008-12-10 17:49:20 +0000 (Wed, 10 Dec 2008)

Log Message:
-----------
Fix the is_contact methods, lots of work remaining

Modified Paths:
--------------
    core/trunk/phpgwapi/inc/class.contacts_sql.inc.php

Modified: core/trunk/phpgwapi/inc/class.contacts_sql.inc.php
===================================================================
--- core/trunk/phpgwapi/inc/class.contacts_sql.inc.php  2008-12-10 17:47:27 UTC 
(rev 19017)
+++ core/trunk/phpgwapi/inc/class.contacts_sql.inc.php  2008-12-10 17:49:20 UTC 
(rev 19018)
@@ -4075,12 +4075,12 @@
 
                function is_contact($account_id)
                {
-                       $account = 
$GLOBALS['phpgw']->accounts->get_account_data($account_id);
-                       if(empty($account[$account_id]['person_id']))
+                       $account = 
$GLOBALS['phpgw']->accounts->get($account_id);
+                       if(intval($account->person_id) == 0)
                        {
                                return False;
                        }
-                       return $account[$account_id]['person_id'];
+                       return $account->person_id;
                }
 
                /**






reply via email to

[Prev in Thread] Current Thread [Next in Thread]