1 users online. Create an account or sign in to join them.Users
Error when Selecting Datasources
A for , submitted by brendo on 15 January 2010
Announcement
Symphony's issue tracker has been moved to Github.
Issues are displayed here for reference only and cannot be created or edited.
Browse
Closed#208: Error when Selecting Datasources
This issue is closed.
Just got this:
Invalid argument supplied for foreach() /{stuff}/symphony/content/content.blueprintsdatasources.php line 572 567 if(is_array($section_data['fields']) && !empty($section_data['fields'])){ 568 foreach($section_data['fields'] as $input){ 569 $elements = $input->fetchIncludableElements(); 570 571 //if(is_array($elements)) { 572 foreach($elements as $name){ 573 $selected = false; 574 575 if($fields['source'] == $section_data['section']->get('id') && @in_array($name, $fields['xml_elements'])){ 576 $selected = true;Fix is quite simple, uncomment my
if(is_array($elements))before theforeach