Merge branch '2984-problemas-tras-actualizacion-php7' into 'develop'

fixed errors php7

See merge request artica/pandorafms!1916
This commit is contained in:
vgilc 2018-10-30 15:00:54 +01:00
commit e6a9ca7bfb
3 changed files with 4 additions and 3 deletions

View File

@ -50,7 +50,7 @@ function dbmanager_query ($sql, &$error, $dbconnection) {
} }
if($config["mysqli"]){ if($config["mysqli"]){
while ($row = mysqli_fetch_array ($result)) { while ($row = mysqli_fetch_array ($result, MYSQLI_ASSOC)) {
array_push ($retval, $row); array_push ($retval, $row);
} }
} }

View File

@ -245,11 +245,12 @@ $module_types = db_get_all_rows_filter (
if ($module_types === false) if ($module_types === false)
$module_types = array (); $module_types = array ();
$types = ''; $types = array();
foreach ($module_types as $type) { foreach ($module_types as $type) {
$types[$type['id_tipo']] = $type['description']; $types[$type['id_tipo']] = $type['description'];
} }
$table = new stdClass();
$table->width = '100%'; $table->width = '100%';
$table->class = 'databox filters'; $table->class = 'databox filters';
$table->data = array (); $table->data = array ();

View File

@ -45,7 +45,7 @@ $rows = db_get_all_rows_in_table('tupdate_settings');
$settings = new StdClass; $settings = new StdClass;
foreach ($rows as $row) { foreach ($rows as $row) {
$settings->$row['key'] = $row['value']; $settings->{$row['key']} = $row['value'];
} }
echo '<script type="text/javascript">'; echo '<script type="text/javascript">';