Fixed variable scope error
This commit is contained in:
parent
d312d92033
commit
28c35c9869
1 changed files with 4 additions and 2 deletions
|
@ -9,7 +9,7 @@
|
|||
* Redistribution of these files must retain the above copyright notice.
|
||||
*
|
||||
* @author Josh Sherman <josh@gravityblvd.com>
|
||||
* @copyright Copyright 2007-2011, Josh Sherman
|
||||
* @copyright Copyright 2007-2011, Josh Sherman
|
||||
* @license http://www.opensource.org/licenses/mit-license.html
|
||||
* @package PICKLES
|
||||
* @link http://p.ickl.es
|
||||
|
@ -32,7 +32,9 @@ class Error
|
|||
*/
|
||||
public static function fatal($message)
|
||||
{
|
||||
if ($this->config->pickles['logging'] === true)
|
||||
$config = Config::getInstance();
|
||||
|
||||
if ($config->pickles['logging'] === true)
|
||||
{
|
||||
if (Log::error($message) == false)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue