Skip to content

Commit

Permalink
Added explicit null return to getConfig if the config item requested …
Browse files Browse the repository at this point in the history
…doesn't exist
  • Loading branch information
joechilds authored and AliasIO committed Jun 19, 2013
1 parent 87b7fb4 commit 8b4f149
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Swiftlet/App.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,13 +120,14 @@ public function serve()
/**
* Get a configuration value
* @param string $variable
* @return mixed
* @return mixed|null
*/
public function getConfig($variable)
{
if ( isset($this->config[$variable]) ) {
return $this->config[$variable];
}
return null;
}

/**
Expand Down

0 comments on commit 8b4f149

Please sign in to comment.