Commit 3a05bd2e authored by Till Brehm's avatar Till Brehm

Fixed #4425 Variable is initialized as string but later written to as array,...

Fixed #4425 Variable is initialized as string but later written to as array, throws fatal error in PHP 7.1
parent 59582ea3
......@@ -131,7 +131,7 @@ class listform_actions {
$records = $app->db->queryAllRecords($this->getQueryString($php_sort));
$this->DataRowColor = "#FFFFFF";
$records_new = '';
$records_new = array();
if(is_array($records)) {
$this->idx_key = $app->listform->listDef["table_idx"];
foreach($records as $rec) {
......
......@@ -173,7 +173,7 @@ class tform_base {
*/
protected function _decode($record, $tab = '', $api = false) {
global $app;
$new_record = '';
$new_record = array();
if($api == false) {
$table_idx = $this->formDef['db_table_idx'];
if(isset($record[$table_idx])) $new_record[$table_idx] = $app->functions->intval($record[$table_idx ]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment