Browse code

includes/seriesreviews.php: Make PHP 8 fix more human-readable

Clarissa Walker authored on 2026/10/09 19:38:14
Showing 1 changed files
... ...
@@ -87,7 +87,7 @@ while($parent) {
87 87
 		") AND review != 'No Review'");
88 88
 	list($total) = dbrow($pnewrating);
89 89
 	list($totalcount) = dbrow($pnewcount);
90
-	if($total) $update = dbquery("UPDATE ".TABLEPREFIX."fanfiction_series SET rating = '".round($total??0)."', reviews = '$totalcount' WHERE seriesid = '$parent' AND rating != '-1'");
90
+	if($total) $update = dbquery("UPDATE ".TABLEPREFIX."fanfiction_series SET rating = '".round($total ?? 0)."', reviews = '$totalcount' WHERE seriesid = '$parent' AND rating != '-1'");
91 91
 	$parentq = dbquery("SELECT seriesid FROM ".TABLEPREFIX."fanfiction_inseries WHERE subseriesid = '$parent'");
92 92
 	if(dbnumrows($parentq)) list($parent) = dbrow($parentq);
93 93
 	else $parent = false;