summaryrefslogtreecommitdiff
path: root/www/mambo/files/patch-includes-Cache-Lite-Function.php
blob: 8b4958beed9005a907d85cd71b7c028b30ef9480 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--- includes/Cache/Lite/Function.php.old        2011-06-27 09:54:53.000000000 +1000
+++ includes/Cache/Lite/Function.php    2011-06-27 09:56:11.000000000 +1000
@@ -72,6 +72,13 @@
     function call()
     {
         $arguments = func_get_args();
+
+       $numargs = func_num_args();
+
+       for($i=1; $i < $numargs; $i++) {
+               $arguments[$i] = &$arguments[$i];
+       }
+
         $id = serialize($arguments); // Generate a cache id
         if (!$this->_fileNameProtection) {
             $id = md5($id);