Fixed bug #14120: Add a method to check if database is connected
authorDmitry Dulepov <dmitry.dulepov@gmail.com>
Thu, 15 Apr 2010 12:09:58 +0000 (12:09 +0000)
committerDmitry Dulepov <dmitry.dulepov@gmail.com>
Thu, 15 Apr 2010 12:09:58 +0000 (12:09 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@7371 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_db.php

index 82fd4a2..13d7bab 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,7 @@
 2010-04-15  Dmitry Dulepov  <dmitry.dulepov@gmail.com>
 
        * Fixed bug #14021: Simplify the code to get nested GET Parameters with TS
+       * Fixed bug #14120: Add a method to check if database is connected
 
 2010-04-15  Benjamin Mack  <benni@typo3.org>
 
index 48ee889..0bf8ea6 100644 (file)
@@ -1341,14 +1341,14 @@ class t3lib_DB {
                }
        }
 
-
-
-
-
-
-
-
-
+       /**
+        * Checks if database is connected
+        *
+        * @return boolean
+        */
+       public function isConnected() {
+               return is_resource($this->link);
+       }