user/revres.php: fix Uncaught TypeError for PHP 8.x when trying to access an author review response to a nonexistent review - sub-issue is an Undefined variable warning when doing so as well
user/revres.php: fix Uncaught TypeError for PHP 8.x when trying to access an author review response to a nonexistent review - sub-issue is an Undefined variable warning when doing so as well

--- a/user/revres.php
+++ b/user/revres.php
@@ -73,7 +73,7 @@
 			exit( );
 
 		}
-		$type = $reviews['type'];
+		$type = (isset($reviews['type']) ? $reviews['type'] : null);
 		if($type == "SE") $query2 = "SELECT uid FROM ".TABLEPREFIX."fanfiction_series WHERE seriesid = '".$reviews['item']."'";
 		else if($type == "ST") {
 			$query2 = "SELECT uid, coauthors FROM ".TABLEPREFIX."fanfiction_stories WHERE sid = '".$reviews['item']."' LIMIT 1";
@@ -84,7 +84,7 @@
 				eval($code['code_text']);
 			}
 		}
-		$user = dbassoc(dbquery($query2));
+		$user = dbassoc(dbquery(isset($query2) ? $query2 : accessDenied()));
 		if(!empty($user['coauthors'])) {
 			$coQuery = dbquery("SELECT uid FROM ".TABLEPREFIX."fanfiction_coauthors WHERE sid = '".$reviews['item']."'");
 			while($c = dbassoc($coQuery)) {