summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorPaul Arthur <flowerysong00@yahoo.com>2012-11-08 13:22:40 -0500
committerPaul Arthur <flowerysong00@yahoo.com>2012-11-08 13:22:56 -0500
commit93251b3c8db8c456cf8c718f08bddd01693cafa9 (patch)
tree3aa40e1609883dc4921623071f672d1ff5ffd1dd /lib
parentd2eaf10b072f8cb1dca887af2006eba00a3fc0fa (diff)
downloadampache-93251b3c8db8c456cf8c718f08bddd01693cafa9.tar.gz
ampache-93251b3c8db8c456cf8c718f08bddd01693cafa9.tar.bz2
ampache-93251b3c8db8c456cf8c718f08bddd01693cafa9.zip
Move check_database_inserted into the Dba class
Diffstat (limited to 'lib')
-rw-r--r--lib/class/dba.class.php24
-rw-r--r--lib/debug.lib.php23
2 files changed, 24 insertions, 23 deletions
diff --git a/lib/class/dba.class.php b/lib/class/dba.class.php
index 03bf441c..ce87bab4 100644
--- a/lib/class/dba.class.php
+++ b/lib/class/dba.class.php
@@ -297,6 +297,30 @@ class Dba {
} // check_database
/**
+ * check_database_inserted
+ * checks to make sure that you have inserted the database
+ * and that the user you are using has access to it
+ */
+ public static function check_database_inserted() {
+
+ $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
+
+
+ /**
* show_profile
* This function is used for debug, helps with profiling
*/
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