Browse Source

dont run if not an array

euromark 12 years ago
parent
commit
afcd436af1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Controller/MyController.php

+ 1 - 1
Controller/MyController.php

@@ -45,7 +45,7 @@ class MyController extends Controller {
 	 */
 	public function redirect($url, $status = null, $exit = true) {
 		$run = Configure::read('App.additionalEncoding');
-		if ($run) {
+		if ($run && is_array($url)) {
 			foreach ($url as $key => $value) {
 				if ($key === '?') {
 					continue;