browse/class.php, browse/ratings.php: more PHP 8 warnings fixes, PHP 5.6 (!) support...
browse/class.php, browse/ratings.php: more PHP 8 warnings fixes, PHP 5.6 (!) support...

--- a/browse/class.php
+++ b/browse/class.php
@@ -39,12 +39,15 @@
 }
 else if(isset($type_id)) {
 	if(empty($type_id)) $classtypelist[$type_id]['title'] = '';
+	if(empty($classtypelist[$type_id]['title'])) $classtypelist[$type_id]['title'] = '';
 	$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&amp;type_id=$type_id&amp;classid=$c'>".$i['name']."</a><br />";
 		else $clist[] = '';
 	}
-	$total = is_countable($clist);
+	if(empty($clist)) $clist = array();
+	if(empty($total)) $total = null;
+	if ($clist) $total = count($clist);
 	$count = 0;
 	$column = 1;
 	$list = floor($total / $displaycolumns);

--- a/browse/ratings.php
+++ b/browse/ratings.php
@@ -34,7 +34,7 @@
 }
 else {
 	$output .= "<div id='pagetitle'>"._RATINGS."</div>";
-	$total = is_countable(isset($ratingslist) ? $ratingslist : null);
+	if ($ratingslist) $total = count(isset($ratingslist) ? $ratingslist : null);
 	$count = 0;
 	$column = 1;
 	$list = floor($total / $displaycolumns);