Skip to content
This repository
Browse code

Merge pull request #3381 from planardothum/shell-requires-cli

Add check to abort if $argv is undefined.
  • Loading branch information...
commit 00be120e7af56de6d2421e857cee28528929b5fb 2 parents 9d19801 + d62e5e1
Mark Story authored April 24, 2014

Showing 1 changed file with 1 addition and 0 deletions. Show diff stats Hide diff stats

  1. 1  lib/Cake/Console/ShellDispatcher.php
1  lib/Cake/Console/ShellDispatcher.php
@@ -323,6 +323,7 @@ public function parseParams($args) {
323 323
 	protected function _parsePaths($args) {
324 324
 		$parsed = array();
325 325
 		$keys = array('-working', '--working', '-app', '--app', '-root', '--root');
  326
+		$args = (array)$args;
326 327
 		foreach ($keys as $key) {
327 328
 			while (($index = array_search($key, $args)) !== false) {
328 329
 				$keyname = str_replace('-', '', $key);

0 notes on commit 00be120

Please sign in to comment.
Something went wrong with that request. Please try again.