mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 09:03:49 +00:00
Fix the sql query backup tool. Tested with postgres and sqlite.
This commit is contained in:
@@ -63,7 +63,7 @@ else {
|
||||
$prep_statement->execute();
|
||||
$result = $prep_statement->fetchAll(PDO::FETCH_NAMED);
|
||||
foreach ($result as &$row) {
|
||||
$table_name = $row[0];
|
||||
$table_name = $row['name'];
|
||||
|
||||
//get the table data
|
||||
$sql = "select * from $table_name";
|
||||
|
||||
Reference in New Issue
Block a user