diff options
author | Paul Arthur <flowerysong00@yahoo.com> | 2012-11-08 13:22:40 -0500 |
---|---|---|
committer | Paul Arthur <flowerysong00@yahoo.com> | 2012-11-08 13:22:56 -0500 |
commit | 93251b3c8db8c456cf8c718f08bddd01693cafa9 (patch) | |
tree | 3aa40e1609883dc4921623071f672d1ff5ffd1dd /lib/debug.lib.php | |
parent | d2eaf10b072f8cb1dca887af2006eba00a3fc0fa (diff) | |
download | ampache-93251b3c8db8c456cf8c718f08bddd01693cafa9.tar.gz ampache-93251b3c8db8c456cf8c718f08bddd01693cafa9.tar.bz2 ampache-93251b3c8db8c456cf8c718f08bddd01693cafa9.zip |
Move check_database_inserted into the Dba class
Diffstat (limited to 'lib/debug.lib.php')
-rw-r--r-- | lib/debug.lib.php | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/lib/debug.lib.php b/lib/debug.lib.php index 9b8b8e05..3eb3ca9e 100644 --- a/lib/debug.lib.php +++ b/lib/debug.lib.php @@ -31,29 +31,6 @@ */ /** - * check_database_inserted - * checks to make sure that you have inserted the database - * and that the user you are using has access to it - */ -function check_database_inserted($dbh,$db_name) { - - $sql = "DESCRIBE session"; - $db_results = Dba::read($sql); - - if (!$db_results) { - return false; - } - - // Make sure the whole table is there - if (Dba::num_rows($db_results) != '7') { - return false; - } - - return true; - -} // check_database_inserted - -/** * check_php_ver * checks the php version and makes * sure that it's good enough |