Merge branch '2984-problemas-tras-actualizacion-php7' into 'develop'
fixed errors php7 See merge request artica/pandorafms!1916
This commit is contained in:
commit
e6a9ca7bfb
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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 ();
|
||||||
|
|
|
@ -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">';
|
||||||
|
|
Loading…
Reference in New Issue