From: Michael Date: Mon, 24 Apr 2017 06:26:49 +0000 (+0000) Subject: Rearranged lines X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=311c029bcf0efe6abd2881e5e8bf0a5b533491b0;p=friendica.git Rearranged lines --- diff --git a/include/dba.php b/include/dba.php index ee62d309cc..d9ab38f429 100644 --- a/include/dba.php +++ b/include/dba.php @@ -467,6 +467,22 @@ class dba { return $id; } + function __destruct() { + if ($this->db) { + switch ($this->driver) { + case 'pdo': + $this->db = null; + break; + case 'mysqli': + $this->db->close(); + break; + case 'mysql': + mysql_close($this->db); + break; + } + } + } + /** * @brief Replaces ANY_VALUE() function by MIN() function, * if the database server does not support ANY_VALUE(). @@ -487,22 +503,6 @@ class dba { return $sql; } - function __destruct() { - if ($this->db) { - switch ($this->driver) { - case 'pdo': - $this->db = null; - break; - case 'mysqli': - $this->db->close(); - break; - case 'mysql': - mysql_close($this->db); - break; - } - } - } - /** * @brief Executes a prepared statement *