[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] CVS: phpgwapi/inc functions.inc.php,1.121.2.9,1.121.2
From: |
Mark A Peters <address@hidden> |
Subject: |
[Phpgroupware-cvs] CVS: phpgwapi/inc functions.inc.php,1.121.2.9,1.121.2.10 |
Date: |
Sat, 06 Apr 2002 11:58:59 -0500 |
Update of /cvsroot/phpgroupware/phpgwapi/inc
In directory subversions:/tmp/cvs-serv19166/phpgwapi/inc
Modified Files:
Tag: Version-0_9_14-branch
functions.inc.php
Log Message:
Better handling of _debug_array and either physically printing or returning
value in string.
Index: functions.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/phpgwapi/inc/functions.inc.php,v
retrieving revision 1.121.2.9
retrieving revision 1.121.2.10
diff -C2 -r1.121.2.9 -r1.121.2.10
*** functions.inc.php 6 Apr 2002 15:13:19 -0000 1.121.2.9
--- functions.inc.php 6 Apr 2002 16:58:57 -0000 1.121.2.10
***************
*** 493,497 ****
function _debug_array($array,$print=True)
{
! return print_r($array,$print);
}
--- 493,514 ----
function _debug_array($array,$print=True)
{
! if(@floor(phpversion()) == 4)
! {
! if(!$print)
! {
! ob_start();
! }
! print_r($array);
! if(!$print)
! {
! $v = ob_get_contents();
! ob_end_clean();
! return $v;
! }
! }
! else
! {
! return print_r($array,$print);
! }
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] CVS: phpgwapi/inc functions.inc.php,1.121.2.9,1.121.2.10,
Mark A Peters <address@hidden> <=