We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No description provided.
The text was updated successfully, but these errors were encountered:
coauthors table was added in 3.4
dbquery("CREATE TABLE `".TABLEPREFIX."fanfiction_coauthors` ( `sid` int(11) NOT NULL default '0', `uid` int(11) NOT NULL default '0', PRIMARY KEY (`sid`,`uid`) ) ENGINE=MyISAM;");
dbquery("UPDATE ".TABLEPREFIX."fanfiction_stories SET coauthors = '1' WHERE coauthors != '0'");
Sorry, something went wrong.
this code looks wrong - changing it to the array
if($stories['coauthors'] == 1) { $coauthors = array(); $coauth = dbquery("SELECT "._PENNAMEFIELD." as penname, co.uid FROM ".TABLEPREFIX."fanfiction_coauthors AS co LEFT JOIN "._AUTHORTABLE." ON co.uid = "._UIDFIELD." WHERE co.sid = '".$stories['sid']."'"); while($c = dbassoc($coauth)) { $coauthors[$c['uid']] = $c['penname']; } $stories['coauthors'] = $coauthors; unset($coauthors); } else if(empty($stories['coauthors'])) $stories['coauthors'] = array( );
Solution:
added story key coauthors_array to be sure what value should be used and when
There is always author (UID) OR author + coauthors_array
No branches or pull requests
No description provided.
The text was updated successfully, but these errors were encountered: