Project

General

Profile

« Previous | Next » 

Revision 1154

Added by aldus about 15 years ago

Missing contiue inside search.php to avoid access to an non-object if the query fails. (ticket #793)

View differences:

search.php
616 616
				$prepared_query .= " ) ) ) ".$query_end;
617 617
				// Execute query
618 618
				$page_query = $database->query($prepared_query." ".$search_path_SQL." ".$search_language_SQL_t);
619

  
619
				if(!$page_query) continue; // on error, skip the rest of the current loop iteration
620 620
				// Loop through queried items
621 621
				if($page_query->numRows() > 0) {
622 622
					while($page = $page_query->fetchRow()) {
......
708 708
// Show search footer
709 709
echo $search_footer;
710 710

  
711
?>
711
?>

Also available in: Unified diff