browse/class.php: fix Uncaught TypeError in PHP 8 with visiting a classification type that has no classifications listed
--- a/browse/class.php
+++ b/browse/class.php
@@ -41,6 +41,7 @@
$output .= "<div id='pagetitle'>".$classtypelist[$type_id]['title']."</div>";
foreach($classlist as $c => $i) {
if($i['type'] == $type_id) $clist[] = "<a href='browse.php?type=class&type_id=$type_id&classid=$c'>".$i['name']."</a><br />";
+ else $clist[] = '';
}
$total = count($clist);
$count = 0;
@@ -61,3 +62,4 @@
$output .= "</div>".($displaycolumns ? "</div>" : "")."<div class='cleaner'> </div></div>";
}
else $output .= _ERROR;
+