fix for hardcoded fields - fix for selecting other author in Add to serie
--- a/series.php
+++ b/series.php
@@ -258,8 +258,8 @@
list($title, $owner) = dbrow($series);
$output .= "<div class='sectionheader'>"._SERIES.": ".stripslashes($title)."</div>";
if(($admin || USERUID == $owner ) && isset($_GET['stories']) && $_GET['stories'] == "others") {
- if($let == _OTHER) $letter= "author.penname REGEXP '^[^a-z]'";
- else $letter = "author.penname LIKE '$let%'";
+ if($let == _OTHER) $letter= _PENNAMEFIELD." REGEXP '^[^a-z]'";
+ else $letter = _PENNAMEFIELD." LIKE '$let%'";
$pagelink = "series.php?action=$action&add=stories&stories=others&seriesid=$seriesid&";
$authorlink = "<a href=\"series.php?action=$action&add=stories&seriesid=$seriesid&stories=";
$countquery = _MEMBERCOUNT." WHERE ap.stories > 0".(isset($letter) ? " AND $letter" : "");