datagovuk / dgu_d7

Data.gov.uk Drupal 7 project
24 stars 23 forks source link

Add empty() to theme_dgu_search_select to fix undefined variable error #280

Closed j420n closed 10 years ago

j420n commented 10 years ago

Error produced on the /forum section when performing an empty search.

ratajczak commented 10 years ago

are you sure that's correct? shouldn't it be isset() instead of empty()?

j420n commented 10 years ago

Hey Pawel I am sure this is right now, it is working as expected. consider this: $var = false; var_dump(isset($var)); output = bool(true)