Browse code

Fix oversight with SMTP fixes and test code causing Undefined storiespath variable PHP Warning - also consistency change

Clarissa Walker authored on 2026/08/22 19:46:23
Showing 1 changed files
... ...
@@ -301,6 +301,7 @@ else if(isset($_POST['submit'])) {
301 301
 	} else {
302 302
 		$output .= write_error(_ERROR);
303 303
 	}
304
+}
304 305
 	$settingsresults = dbquery("SELECT * FROM ".$settingsprefix."fanfiction_settings WHERE sitekey ='".SITEKEY."'");
305 306
 	$settings = dbassoc($settingsresults);
306 307
  
... ...
@@ -308,7 +309,6 @@ else if(isset($_POST['submit'])) {
308 309
 		if(is_NULL($val)) $val = '';
309 310
 		$$var = stripslashes($val );
310 311
 	}
311
-	}
312 312
 
313 313
 	$output .= "<form method='POST' class='tblborder' style='' enctype='multipart/form-data' action='".((isset($action) && $action == "settings") ? "admin.php?action=settings" : $_SERVER['PHP_SELF']."?step=".$_GET['step'])."&amp;sect=$sect'>";
314 314
 	if($sect == "main") {
... ...
@@ -558,7 +558,7 @@ else if(isset($_POST['submit'])) {
558 558
 		</tr>
559 559
 		<tr>
560 560
 				<td><label for='newratings'>"._WHATRATINGS. ":</label></td><td><select name='newratings'>
561
-				<option value='3'" . ($ratings == "3" ? " selected" : "") . ">" . _LIKES_NUMBER . "</option>
561
+				<option value='3'".($ratings == "3" ? " selected" : "").">"._LIKES_NUMBER."</option>
562 562
 				<option value='2'".($ratings == "2" ? " selected" : "").">"._LIKESYS."</option>
563 563
 				<option value='1'".($ratings == "1" ? " selected" : "").">"._STARS."</option>
564 564
 				<option value='0'".($ratings == "0" ? " selected" : "").">"._NONE."</option>