[prev in list] [next in list] [prev in thread] [next in thread]
List: tep-commits
Subject: [TEP-COMMIT] CVS: admin/admin/includes/functions compatibility.php,1.10,1.11
From: Mark Evans <project3000 () users ! sourceforge ! net>
Date: 2003-07-18 19:46:07
[Download RAW message or body]
Update of /cvsroot/tep/admin/admin/includes/functions
In directory sc8-pr-cvs1:/tmp/cvs-serv10574
Modified Files:
compatibility.php
Log Message:
Add array_map() function to the admin tool.
This fixes bug 1264.
Index: compatibility.php
===================================================================
RCS file: /cvsroot/tep/admin/admin/includes/functions/compatibility.php,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- compatibility.php 23 Jun 2003 01:20:05 -0000 1.10
+++ compatibility.php 18 Jul 2003 19:46:05 -0000 1.11
@@ -153,4 +153,19 @@
return $new_array;
}
}
-?>
+
+ if (!function_exists('array_map')) {
+ function array_map($callback, $array) {
+ if (is_array($array)) {
+ $_new_array = array();
+ reset($array);
+ while (list($key, $value) = each($array)) {
+ $_new_array[$key] = array_map($callback, $array[$key]);
+ }
+ return $_new_array;
+ } else {
+ return $callback($array);
+ }
+ }
+ }
+?>
\ No newline at end of file
-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
_______________________________________________
Tep-commits mailing list
Tep-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tep-commits
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic