This code give me an Illegal string offset ‘gfmem_type’ in /home/customer/www/.... on line 702. Line 702 is the one starting with "if" here.
I think that this is strange because the code works and I can echo the $settings['gfmem_type'] (Gives me "profile") and I can print_r the $settings where I can find the 'gfmem_type'. If I did not found the gfmem_type I can understand the error, but its all there.
public function profile_fields( $form ) {
$settings = $this->get_form_settings( $form );
if ($settings['gfmem_type'] == 'profile') {
...
Why do I get the error?