[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] CVS: phpgwapi/inc php3_support_functions.inc.php,1.14
From: |
Mark A Peters <address@hidden> |
Subject: |
[Phpgroupware-cvs] CVS: phpgwapi/inc php3_support_functions.inc.php,1.14,1.15 |
Date: |
Fri, 15 Mar 2002 21:59:16 -0500 |
Update of /cvsroot/phpgroupware/phpgwapi/inc
In directory subversions:/tmp/cvs-serv4160/phpgwapi/inc
Modified Files:
php3_support_functions.inc.php
Log Message:
in_array() should now be compatible with php3.
Index: php3_support_functions.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/phpgwapi/inc/php3_support_functions.inc.php,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -r1.14 -r1.15
*** php3_support_functions.inc.php 18 Feb 2002 10:25:57 -0000 1.14
--- php3_support_functions.inc.php 16 Mar 2002 02:59:13 -0000 1.15
***************
*** 232,236 ****
* otherwise.
*/
! function in_array($needle, $haystack, $strict = False)
{
if(is_array($haystack) && count($haystack))
--- 232,236 ----
* otherwise.
*/
! function in_array($needle, $haystack='', $strict = False)
{
if(is_array($haystack) && count($haystack))
***************
*** 244,247 ****
--- 244,251 ----
}
return False;
+ }
+ elseif($haystack=='')
+ {
+ return False;
}
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] CVS: phpgwapi/inc php3_support_functions.inc.php,1.14,1.15,
Mark A Peters <address@hidden> <=