WordPress.org

Support

Support » Themes and Templates » unexpected T_IF (news theme)

unexpected T_IF (news theme)

  • PHP Parse error: syntax error, unexpected T_IF in …/themes/news/searchform.php on line 13

    The line in question is:

    $search_id = if ( $search_num ) ? esc_attr( ‘-‘ . $search_num ) : ”;

    This looks like it works as a fix:

    if ( $search_num ) { $search_id = esc_attr( ‘-‘ . $search_num ); } else { $search_id = ”;}

    http://wordpress.org/extend/plugins/news/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘unexpected T_IF (news theme)’ is closed to new replies.