From 0978be9b514ca40d840ff1032e816966db407bb1 Mon Sep 17 00:00:00 2001 From: daniel Date: Tue, 30 Oct 2018 14:43:27 +0100 Subject: [PATCH] fixed errors php7 --- pandora_console/extensions/dbmanager.php | 2 +- pandora_console/godmode/massive/massive_delete_modules.php | 3 ++- pandora_console/godmode/setup/license.php | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/pandora_console/extensions/dbmanager.php b/pandora_console/extensions/dbmanager.php index 6cb372d43c..1ed38b3575 100644 --- a/pandora_console/extensions/dbmanager.php +++ b/pandora_console/extensions/dbmanager.php @@ -50,7 +50,7 @@ function dbmanager_query ($sql, &$error, $dbconnection) { } if($config["mysqli"]){ - while ($row = mysqli_fetch_array ($result)) { + while ($row = mysqli_fetch_array ($result, MYSQLI_ASSOC)) { array_push ($retval, $row); } } diff --git a/pandora_console/godmode/massive/massive_delete_modules.php b/pandora_console/godmode/massive/massive_delete_modules.php index 047eb08b75..8462d75b7e 100755 --- a/pandora_console/godmode/massive/massive_delete_modules.php +++ b/pandora_console/godmode/massive/massive_delete_modules.php @@ -245,11 +245,12 @@ $module_types = db_get_all_rows_filter ( if ($module_types === false) $module_types = array (); -$types = ''; +$types = array(); foreach ($module_types as $type) { $types[$type['id_tipo']] = $type['description']; } +$table = new stdClass(); $table->width = '100%'; $table->class = 'databox filters'; $table->data = array (); diff --git a/pandora_console/godmode/setup/license.php b/pandora_console/godmode/setup/license.php index a772c0e015..6cbcb4f68c 100644 --- a/pandora_console/godmode/setup/license.php +++ b/pandora_console/godmode/setup/license.php @@ -45,7 +45,7 @@ $rows = db_get_all_rows_in_table('tupdate_settings'); $settings = new StdClass; foreach ($rows as $row) { - $settings->$row['key'] = $row['value']; + $settings->{$row['key']} = $row['value']; } echo '