phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] phpgwapi/inc common_functions.inc.php


From: Dave Hall
Subject: [Phpgroupware-cvs] phpgwapi/inc common_functions.inc.php
Date: Mon, 23 Oct 2006 10:27:00 +0000

CVSROOT:        /sources/phpgwapi
Module name:    phpgwapi
Changes by:     Dave Hall <skwashd>     06/10/23 10:27:00

Modified files:
        inc            : common_functions.inc.php 

Log message:
        fix design flaw in function

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/phpgwapi/inc/common_functions.inc.php?cvsroot=phpgwapi&r1=1.25&r2=1.26

Patches:
Index: common_functions.inc.php
===================================================================
RCS file: /sources/phpgwapi/phpgwapi/inc/common_functions.inc.php,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -b -r1.25 -r1.26
--- common_functions.inc.php    22 Sep 2006 03:03:50 -0000      1.25
+++ common_functions.inc.php    23 Oct 2006 10:27:00 -0000      1.26
@@ -8,7 +8,7 @@
  * @license http://www.fsf.org/licenses/lgpl.html GNU Lesser General Public 
License
  * @package phpgwapi
  * @subpackage utilities
- * @version $Id: common_functions.inc.php,v 1.25 2006/09/22 03:03:50 skwashd 
Exp $
+ * @version $Id: common_functions.inc.php,v 1.26 2006/10/23 10:27:00 skwashd 
Exp $
  */
 
        /*
@@ -620,11 +620,11 @@
         */
        function get_account_id($account_id = '', $default_id = '')
        {
-               if (gettype($account_id) == 'integer')
+               if ( gettype($account_id) == 'integer' && $account_id <> 0 )
                {
                        return $account_id;
                }
-               elseif ($account_id == '')
+               elseif ( !$account_id )
                {
                        if ($default_id == '')
                        {




reply via email to

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