--- multi.php 2001/10/01 14:05:16 1.1 +++ multi.php 2001/10/31 12:17:41 1.2 @@ -19,7 +19,7 @@ $sql="select id,menu_num,name,html,path,type from multi where $visible_is_true and id=$p"; $sth = $dbh->prepare("$sql"); $sth->execute(); - $row=$sth->fetchrow_hash(); + if ($row=$sth->fetchrow_hash()) { $title.=" : $row[name]"; if ($row[type]=="h" && find_html_file("multi",$row[html])) { @@ -84,6 +84,11 @@ "multi_page_options"=>$multi_page_options, "multi_page_curr_id"=>$curr_id )); + + } else { // no such page (no fetch) + $main="This page is no longer available"; + $section="index"; + } } include("section.inc");