From 34369f5e11be2f2d33f4b48e638d6325bcc05227 Mon Sep 17 00:00:00 2001 From: "Bradley W. Dutton" Date: Sun, 29 Mar 2020 13:19:17 -0700 Subject: [PATCH] ditch tab spacing --- .../gallery/libraries/MY_Database_Mysql.php | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/modules/gallery/libraries/MY_Database_Mysql.php b/modules/gallery/libraries/MY_Database_Mysql.php index 22e3ab85..2f7cdb61 100644 --- a/modules/gallery/libraries/MY_Database_Mysql.php +++ b/modules/gallery/libraries/MY_Database_Mysql.php @@ -19,17 +19,17 @@ */ class Database_Mysql extends Database_Mysql_Core { - public function connect() - { - if ($this->connection) - return; + public function connect() + { + if ($this->connection) + return; - if (!function_exists('mysql_connect')) { - $msg = 'You configured your DB to use the "mysql" module but the PHP mysql module doesn\'t appear to be installed. If you are upgrading to PHP 7 you should update var/database.php to use the mysqli module instead of mysql.'; - print $msg; - throw new Kohana_Exception($msg); - } + if (!function_exists('mysql_connect')) { + $msg = 'You configured your DB to use the "mysql" module but the PHP mysql module doesn\'t appear to be installed. If you are upgrading to PHP 7 you should update var/database.php to use the mysqli module instead of mysql.'; + print $msg; + throw new Kohana_Exception($msg); + } - return parent::connect(); - } + return parent::connect(); + } }