|
...
|
...
|
@@ -55,7 +55,7 @@ $newcount = dbquery("SELECT count(reviewid) as totalcount FROM ".TABLEPREFIX."fa
|
|
55
|
55
|
(count($serieslist) > 0 ? " OR (FIND_IN_SET(item, '".(implode(",", $serieslist))."') > 0 AND type = 'SE')" : "").
|
|
56
|
56
|
") AND review != 'No Review'");
|
|
57
|
57
|
list($totalcount) = dbrow($newcount);
|
|
58
|
|
-if($totalcount) $update = dbquery("UPDATE ".TABLEPREFIX."fanfiction_series SET rating = '".round($totalreviews??0)."', reviews = '$totalcount' WHERE seriesid = '$thisseries'");
|
|
|
58
|
+if($totalcount) $update = dbquery("UPDATE ".TABLEPREFIX."fanfiction_series SET rating = '".round($totalreviews ?? 0)."', reviews = '$totalcount' WHERE seriesid = '$thisseries'");
|
|
59
|
59
|
$parentq = dbquery("SELECT seriesid FROM ".TABLEPREFIX."fanfiction_inseries WHERE subseriesid = '$thisseries' AND seriesid != '$thisseries'");
|
|
60
|
60
|
if(dbnumrows($parentq) > 0) list($parent) = dbrow($parentq);
|
|
61
|
61
|
else $parent = false;
|