diff --git a/interface/lib/classes/listform_actions.inc.php b/interface/lib/classes/listform_actions.inc.php index 3a3ac6e129a2624e8c3f41d434ce42413d484560..d9fd759287665291775f1b872fc9b3249a054e82 100644 --- a/interface/lib/classes/listform_actions.inc.php +++ b/interface/lib/classes/listform_actions.inc.php @@ -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) { diff --git a/interface/lib/classes/tform_base.inc.php b/interface/lib/classes/tform_base.inc.php index 984e82f7f8867b462347001fceaf9e6772871a67..923953adcdc4e3ab2b7b647711e577fb29437e80 100644 --- a/interface/lib/classes/tform_base.inc.php +++ b/interface/lib/classes/tform_base.inc.php @@ -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 ]);