]> git.mxchange.org Git - friendica.git/blobdiff - include/dba.php
Fix Issue #2816 - MySQL version typo
[friendica.git] / include / dba.php
index 5e84b95df559a18a2878e09e4fa675bc99d85172..97f6c8795645492aeda5f47cd5707dc0b325545a 100644 (file)
@@ -249,6 +249,15 @@ class dba {
                }
        }
 
+       function connected() {
+               if ($this->mysqli)
+                       $connected = $this->db->ping();
+               else
+                       $connected = mysql_ping($this->db);
+
+               return $connected;
+       }
+
        function __destruct() {
                if ($this->db)
                        if($this->mysqli)