Browse Source

Since PHP 5.3 the variable is no longer copied

Removing the reference makes the code faster.
Juan Basso 11 years ago
parent
commit
618eaa039b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Utility/Hash.php

+ 1 - 1
src/Utility/Hash.php

@@ -65,7 +65,7 @@ class Hash {
 
 		foreach ($parts as $key) {
 			if (is_array($data) && isset($data[$key])) {
-				$data =& $data[$key];
+				$data = $data[$key];
 			} else {
 				return $default;
 			}