[phpcvsview-cvs-updates] phpcvsview utils.php,1.7,1.8
Status: Pre-Alpha
Brought to you by:
bcheesem
From: Sijis A. <si...@us...> - 2005-02-04 09:48:03
|
Update of /cvsroot/phpcvsview/phpcvsview In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11042 Modified Files: utils.php Log Message: - modified function to fix warning given in php5 about using references Index: utils.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/utils.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** utils.php 3 Feb 2005 23:48:34 -0000 1.7 --- utils.php 4 Feb 2005 09:47:54 -0000 1.8 *************** *** 158,167 **** } ! function InsertIntoArray(&$Array, $Value, $Position) { ! if (!is_array($Array)) return false; $Last = array_splice($Array, $Position); $Array[] = $Value; $Array = array_merge($Array, $Last); } --- 158,168 ---- } ! function InsertIntoArray($Array, $Value, $Position) { ! if (!is_array($Array)) {return $Array;} $Last = array_splice($Array, $Position); $Array[] = $Value; $Array = array_merge($Array, $Last); + return $Array; } |