fixed errors php7

This commit is contained in:
daniel 2018-10-30 14:43:27 +01:00
parent 743a41d29c
commit 0978be9b51
3 changed files with 4 additions and 3 deletions

View File

@ -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);
}
}

View File

@ -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 ();

View File

@ -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 '<script type="text/javascript">';