added default value for $active_record when it's not set
diff --git a/system/database/DB.php b/system/database/DB.php
index 8f25e5e..078f1ef 100644
--- a/system/database/DB.php
+++ b/system/database/DB.php
@@ -65,7 +65,7 @@
 	

 	require_once(BASEPATH.'database/DB_driver'.EXT);

 

-	if ($active_record == TRUE)

+	if (! isset($active_record) OR $active_record == TRUE)

 	{

 		require_once(BASEPATH.'database/DB_active_rec'.EXT);