diff options
author | Paul Arthur <flowerysong00@yahoo.com> | 2012-11-08 13:23:27 -0500 |
---|---|---|
committer | Paul Arthur <flowerysong00@yahoo.com> | 2012-11-08 13:23:27 -0500 |
commit | 54f9633498af77a069258c4fe254bcd7f0f414e3 (patch) | |
tree | 2d426196470c3473b9440749ebb5e3366af5d196 /lib/class/dba.class.php | |
parent | 93251b3c8db8c456cf8c718f08bddd01693cafa9 (diff) | |
download | ampache-54f9633498af77a069258c4fe254bcd7f0f414e3.tar.gz ampache-54f9633498af77a069258c4fe254bcd7f0f414e3.tar.bz2 ampache-54f9633498af77a069258c4fe254bcd7f0f414e3.zip |
Cosmetics: clean up spaces
Diffstat (limited to 'lib/class/dba.class.php')
-rw-r--r-- | lib/class/dba.class.php | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/lib/class/dba.class.php b/lib/class/dba.class.php index ce87bab4..27ab955a 100644 --- a/lib/class/dba.class.php +++ b/lib/class/dba.class.php @@ -283,16 +283,16 @@ class Dba { */ public static function check_database($host,$username,$pass) { - $dbh = @mysql_connect($host, $username, $pass); + $dbh = @mysql_connect($host, $username, $pass); - if (!is_resource($dbh)) { - return false; - } - if (!$host || !$username) { - return false; - } + if (!is_resource($dbh)) { + return false; + } + if (!$host || !$username) { + return false; + } - return $dbh; + return $dbh; } // check_database @@ -303,15 +303,15 @@ class Dba { */ public static function check_database_inserted() { - $sql = "DESCRIBE session"; + $sql = "DESCRIBE session"; $db_results = Dba::read($sql); - if (!$db_results) { - return false; - } + if (!$db_results) { + return false; + } // Make sure the whole table is there - if (Dba::num_rows($db_results) != '7') { + if (Dba::num_rows($db_results) != '7') { return false; } |