- remove deprecated function mysql_list_tables() from install.php

This commit is contained in:
Michael Kaufmann (d00p)
2010-07-29 11:00:27 +00:00
parent 5c4a38e4de
commit 038e9947c1

View File

@@ -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";