upgrade to codeigniter 1.7.2 for f12
[www-register-wizard.git] / libraries / Profiler.php
index 5e9fa8b..ecd0e70 100644 (file)
@@ -6,7 +6,7 @@
  *
  * @package            CodeIgniter
  * @author             ExpressionEngine Dev Team
- * @copyright  Copyright (c) 2008, EllisLab, Inc.
+ * @copyright  Copyright (c) 2008 - 2009, EllisLab, Inc.
  * @license            http://codeigniter.com/user_guide/license.html
  * @link               http://codeigniter.com
  * @since              Version 1.0
@@ -103,11 +103,11 @@ class CI_Profiler {
        function _compile_queries()
        {
                $dbs = array();
-               
+
                // Let's determine which databases are currently connected to
                foreach (get_object_vars($this->CI) as $CI_object)
                {
-                       if ( is_subclass_of(get_class($CI_object), 'CI_DB') )
+                       if (is_object($CI_object) && is_subclass_of(get_class($CI_object), 'CI_DB') )
                        {
                                $dbs[] = $CI_object;
                        }