Browse code

reviews.php: stupid typo in check, temp fix for coauthors variable behavior

Clarissa Walker authored on 2026/11/01 11:16:07
Showing 1 changed files
... ...
@@ -227,7 +227,7 @@ else if($action == "edit" || $action == "add") {
227 227
 				if($coauthors) {
228 228
 					$coQuery = dbquery("SELECT uid FROM ".TABLEPREFIX."fanfiction_coauthors WHERE sid = '$item'");
229 229
 					while($c = dbassoc($coQuery)) {
230
-						$coauthors[] = $c['uid'];
230
+						$coauthors = $c['uid']; // was $coauthors[], crashes PHP 8.x. Check this later...
231 231
 					}
232 232
 				}
233 233
 			}
... ...
@@ -327,7 +327,7 @@ else {
327 327
 		}
328 328
 	}
329 329
 	else if($type == "SE") {
330
-		$if(empty($item)) accessDenied( );
330
+		if(empty($item)) accessDenied( );
331 331
 		$storyquery = dbquery("SELECT title, uid FROM ".TABLEPREFIX."fanfiction_series WHERE seriesid = '$item' LIMIT 1");
332 332
 		list($title, $authoruid) = dbrow($storyquery);
333 333
 		$titletext = $title;