Skip to content

Commit

Permalink
Simplify ternary operator usage
Browse files Browse the repository at this point in the history
  • Loading branch information
dregad committed Mar 7, 2016
1 parent 90c17a5 commit bb84876
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/form_api.php
Expand Up @@ -127,7 +127,7 @@ function form_security_param( $p_form_name, $p_security_token = null ) {
return '';
}

$t_string = !is_null( $p_security_token ) ? $p_security_token : form_security_token( $p_form_name );
$t_string = $p_security_token !== null ?: form_security_token( $p_form_name );

# Create the GET parameter to be used in a URL for a secure link
$t_form_token = $p_form_name . '_token';
Expand Down

0 comments on commit bb84876

Please sign in to comment.