From 038e9947c1198587d848c7a387edeaa7c96a9dd8 Mon Sep 17 00:00:00 2001 From: "Michael Kaufmann (d00p)" Date: Thu, 29 Jul 2010 11:00:27 +0000 Subject: [PATCH] - remove deprecated function mysql_list_tables() from install.php --- install/install.php | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/install/install.php b/install/install.php index 6acdc1c0..da564078 100644 --- a/install/install.php +++ b/install/install.php @@ -499,9 +499,19 @@ if(isset($_POST['installstep']) //first we make a backup of the old DB if it exists status_message('begin', $lng['install']['backup_old_db']); - $result = mysql_list_tables($mysql_database); - if($result) + $sql = "SHOW TABLES FROM $mysql_database"; + $result = mysql_query($sql); + // check the first row + $row = mysql_fetch_row($result); + + $tables_exist = false; + if(isset($row[0]) && $row[0] != '') + { + $tables_exist = true; + } + + if($tables_exist) { $filename = "/tmp/froxlor_backup_" . date('YmdHi') . ".sql";