If this is your first visit, check our documentation. To post, register or login.
Forums / Code Matters / Bug Reports / [Not a bug] $show_search_header

[Not a bug] $show_search_header

Started by batman42ca on 28 Jun 2011, 3:03 PM · Views: 529

Results 1 to 1 of 1
28 Jun 2011, 3:03 PM
#1
batman42ca avatar

batman42ca

New Zenner

Join Date:
May 2010
Posts:
32
Plugin Contributions:
0

Post #1 by batman42ca

I prefer whenever possible to have no warnings and no erros in the code so I run with:

error_reporting(E_ALL);

When I do that, I see the following error:

PHP Notice: Undefined variable: show_search_header in \includes\modules\sideboxes\search_header.php on line 19

The simple solution is to change this:

if ($search_header_status->RecordCount() != 0) {
    $show_search_header= true;
}

to this:

$show_search_header = false;

if ($search_header_status->RecordCount() != 0) {
  $show_search_header= true;
}