[Openfirst-cvscommit] base/includes functions.php,1.14,1.15
Brought to you by:
xtimg
From: Jamie <ast...@us...> - 2005-11-23 22:00:37
|
Update of /cvsroot/openfirst/base/includes In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4653/includes Modified Files: functions.php Log Message: ofFixMagicQuotes() fix-up Index: functions.php =================================================================== RCS file: /cvsroot/openfirst/base/includes/functions.php,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** functions.php 23 Nov 2005 21:52:26 -0000 1.14 --- functions.php 23 Nov 2005 22:00:25 -0000 1.15 *************** *** 235,242 **** function ofFixMagicQuotes(&$arr) { $sybase = (bool)ini_get('magic_quotes_sybase'); foreach( $arr as $key => $val ) { if( is_array( $val ) ) { ofFixMagicQuotes( $arr[$key] ); ! } else { if ($sybase) { // We really should just die() here and make them get a decent configuration. --- 235,243 ---- function ofFixMagicQuotes(&$arr) { $sybase = (bool)ini_get('magic_quotes_sybase'); + if (count($arr) <= 0) return; foreach( $arr as $key => $val ) { if( is_array( $val ) ) { ofFixMagicQuotes( $arr[$key] ); ! } else if (is_string($val)) { if ($sybase) { // We really should just die() here and make them get a decent configuration. |