Skip to content

Commit

Permalink
reverted search bugfix (9a5fcd4) - needs php 5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
following committed Mar 16, 2013
1 parent a39c79e commit 047032a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions htdocs/search.php
Expand Up @@ -75,7 +75,7 @@
$queryid = 0; $queryid = 0;
} }


newquery: // newquery: -- goto needs PHP 5.3
if ($queryid == 0) if ($queryid == 0)
{ {
// das Suchformular wird initialisiert (keine Vorbelegungen vorhanden) // das Suchformular wird initialisiert (keine Vorbelegungen vorhanden)
Expand Down Expand Up @@ -108,14 +108,12 @@
if (mysql_num_rows($query_rs) == 0) if (mysql_num_rows($query_rs) == 0)
{ {
$queryid = 0; $queryid = 0;
goto newquery; // can happen if logged out after query was created (fix for #3915) // goto newquery; - needs PHP 5.3 // can happen if logged out after query was created (fix for #3915)
/*
$tplname = 'error'; $tplname = 'error';
tpl_set_var('tplname', 'search.php'); tpl_set_var('tplname', 'search.php');
tpl_set_var('error_msg', $error_query_not_found); tpl_set_var('error_msg', $error_query_not_found);
tpl_BuildTemplate(); tpl_BuildTemplate();
exit; exit;
*/
} }
else else
{ {
Expand Down

0 comments on commit 047032a

Please sign in to comment.