Notifications
Clear all

[FIXED] Validation is broken in versrion 3.2

4 Posts
3 Users
0 Reactions
2,280 Views
(@jrabbit)
Posts: 64
Trusted Member
Topic starter
 

In admin/validate.php

Line 110 has a missing where clause and will count words in all unvalidated chapters after you validate any one chapter. It should be:

$count =  dbquery("SELECT SUM(wordcount) as totalcount FROM ".$tableprefix."fanfiction_chapters WHERE sid = '$sid' AND validated=1");

Line 115 has fanfiction_ missing from the table name and in incorrect where clause - it should read:

list($chapters, $words) = dbrow(dbquery("SELECT COUNT(chapid), SUM(wordcount) FROM ".$tableprefix."fanfiction_chapters WHERE validated=1"));

Line 117 is an excess } that needs to be deleted.


 
Posted : 27/02/2007 10:01 pm
 laiq
(@laiq)
Posts: 19
Active Member
 

I'm hoping this should also fix my problem - I don't require validation, but at the moment I have a queue of chapters, that I cannot validate.


 
Posted : 28/02/2007 5:45 pm
Jan_AQ
(@jan_aq)
Posts: 1300
Noble Member
 

I validated new stories and chapters since the upgrade. Seems to be fixed.


Whoever said nothing is impossible never tried slamming a revolving door.

url: https://www.potionsandsnitches.org/fanfiction
php: 7.4.33 msql: 5.6.51-community GPL
efic version: 3.5.5 latest patches: yes
bridges: none mods: challenges, tracker, story end, beta, word

 
Posted : 18/06/2007 9:30 pm
(@jrabbit)
Posts: 64
Trusted Member
Topic starter
 

This is fixed in 3.3


 
Posted : 25/06/2007 8:51 pm
Share: