Fixed variable scope error

This commit is contained in:
Josh Sherman 2012-04-08 13:45:39 -04:00
parent d312d92033
commit 28c35c9869

View file

@ -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)
{