Skip to content

Commit

Permalink
Check if CLI option exists before trying to get it
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonny Stirling committed Feb 1, 2012
1 parent 8091280 commit 206ffdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/core/app/atsumi_AppHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ public function createUri($controller, $method) {
* @param string $uri The uri to processed
*/
public function go($uri) {
if($this->settings->get_cli === true) {
if(isset($this->settings->get_cli) && $this->settings->get_cli === true) {
$this->setBaseUri('.');
$this->setCommand($uri);
$this->parseCommand();
Expand Down

0 comments on commit 206ffdc

Please sign in to comment.