Possible merging problem on line 153 ff

Collie-IT 12 Sep, 2020
1 Likes
Dear support
i found on
/wp-content/plugins/chronoforms7/chronog3/admin/extensions/chronofc/libs/fdata.php:153:
[pre]if($source_fn['type'] == 'read_data' ){
$results = array_merge($results, $this->get($source_fn['name']));[br] }else if($source_fn['type'] == 'static_data'){[br] $results = array_merge($results, $this->get($source_fn['name']));[br] }else if($source_fn['type'] == 'shopping_cart'){[br] $results = array_merge($results, \GApp3::session()->get($source_fn['cart']['id'].'.products', []));[br] }[/pre]

following issue:
If the database gives back a false/no results this code throws an exception on merging because it will try an merge of
array_merge(array(), false);
To prefent the issue you sould put an check before
if($this->get($source_fn['name']) !== false){
Best regards
Collie-IT[br]
Max_admin 16 Sep, 2020
Answer
yes, to be fixed in the next update!
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.