fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [15508] simplify


From: sigurdne
Subject: [Fmsystem-commits] [15508] simplify
Date: Thu, 25 Aug 2016 14:53:42 +0000 (UTC)

Revision: 15508
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=15508
Author:   sigurdne
Date:     2016-08-25 14:53:42 +0000 (Thu, 25 Aug 2016)
Log Message:
-----------
simplify

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

Modified: trunk/phpgwapi/inc/class.contacts_sql.inc.php
===================================================================
--- trunk/phpgwapi/inc/class.contacts_sql.inc.php       2016-08-25 14:53:14 UTC 
(rev 15507)
+++ trunk/phpgwapi/inc/class.contacts_sql.inc.php       2016-08-25 14:53:42 UTC 
(rev 15508)
@@ -3421,7 +3421,9 @@
 
                function get_account_id($contact_id)
                {
-                       $account_id = 0;
+
+                       return (int) $this->is_user($contact_id);
+/*
                        $accounts = $GLOBALS['phpgw']->accounts->get_list();
                        foreach($accounts as $account_data)
                        {
@@ -3433,6 +3435,7 @@
                        }
 
                        return $account_id;
+*/
                }
 
 




reply via email to

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