Skip to content

Commit

Permalink
fix #3
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriele Diener committed Aug 31, 2016
1 parent bf97745 commit 7aac087
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions classes/AeriaSection.php
Original file line number Diff line number Diff line change
Expand Up @@ -232,9 +232,9 @@ public static function render_field($field=null,$key=0,$val='',$id_section=''){
if(!$field) return;

if(!empty($id_section)) $field['id'] = $id_section.'_'.$field['id'];
if (empty($val) && is_callable($field['value'])) $field['value'] = call_user_func($field['value']);
if (empty($val)) $val = is_callable($field['value']) ? call_user_func($field['value']) : $field['value'];
if ($field['type'] == 'hidden'){
echo '<input type="hidden" value="' . $field['value'] . '" id="' . $field['id'] . '_' . $key . '" name="' . $field['id'] . '_' . $key . '"/> ';
echo '<input type="hidden" value="' . $val . '" id="' . $field['id'] . '_' . $key . '" name="' . $field['id'] . '_' . $key . '"/> ';
return;
}

Expand Down

0 comments on commit 7aac087

Please sign in to comment.