set $dbs to an empty array before accessing
diff --git a/system/libraries/Profiler.php b/system/libraries/Profiler.php
index 669662e..980cf09 100644
--- a/system/libraries/Profiler.php
+++ b/system/libraries/Profiler.php
@@ -102,6 +102,8 @@
 	 */	

 	function _compile_queries()

 	{

+		$dbs = array();

+		

 		// Let's determine which databases are currently connected to

 		foreach (get_object_vars($this->CI) as $CI_object)

 		{