Skip to content

Commit

Permalink
fix unable to set initial form user field value empty
Browse files Browse the repository at this point in the history
  • Loading branch information
myovchev committed Mar 17, 2016
1 parent 2b12bc4 commit ffe2740
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion e107_handlers/form_handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -4468,7 +4468,7 @@ function renderElement($key, $value, $attributes, $required_data = array(), $id
if(!isset($parms['__options'])) $parms['__options'] = array();
if(!is_array($parms['__options'])) parse_str($parms['__options'], $parms['__options']);

if((empty($value) && varset($parms['currentInit'],USERID)!==0) || vartrue($parms['current'])) // include current user by default.
if((empty($value) && varset($parms['currentInit'],USERID)!=0) || vartrue($parms['current'])) // include current user by default.
{
$value = USERID;
if(vartrue($parms['current']))
Expand Down

0 comments on commit ffe2740

Please sign in to comment.