diff --git a/system/codeigniter/Common.php b/system/codeigniter/Common.php
index 8ac80d6..07b468f 100644
--- a/system/codeigniter/Common.php
+++ b/system/codeigniter/Common.php
@@ -204,7 +204,7 @@
 	static $LOG;
 	
 	$config = get_config();
-	if ($config['log_errors'] === FALSE)
+	if ($config['log_threshold'] == 0)
 	{
 		return;
 	}
@@ -255,7 +255,7 @@
 	
 	// Should we log the error?  No?  We're done...
 	$config = get_config();
-	if ($config['log_errors'] === FALSE)
+	if ($config['log_threshold'] == 0)
 	{
 		return;
 	}