diff --git a/db_search.php b/db_search.php index 8b866e580..53d8622c0 100644 --- a/db_search.php +++ b/db_search.php @@ -181,7 +181,7 @@ if (isset($_REQUEST['submit_search'])) { // Eliminates empty values // In MySQL 4.1, if a field has no collation we get NULL in Charset // but in MySQL 5.0.x we get '' - if (strlen($search_words) === 0) { + if (strlen($search_word) === 0) { continue; }