Okay I found the problem. You need to apply these changes in the file functions/sets_marking.php :
Note the @@ line numbers @@ may be a bit off but it is an indication where about there are. A - means remove line, a + means add that line instead.
@@ -526,8 +528,8 @@
- $maxsetsize = get_pref($prefs, $userID, 'maxsetsize', 0);
- $minsetsize = get_pref($prefs, $userID, 'minsetsize', 0);
+ $maxsetsize = get_pref($db, $userID, 'maxsetsize', 0);
+ $minsetsize = get_pref($db, $userID, 'minsetsize', 0);
@@ -599,8 +601,8 @@
- $maxsetsize = get_pref($prefs, $userID, 'maxsetsize', 0);
- $minsetsize = get_pref($prefs, $userID, 'minsetsize', 0);
+ $maxsetsize = get_pref($db, $userID, 'maxsetsize', 0);
+ $minsetsize = get_pref($db, $userID, 'minsetsize', 0)
@@ -699,11 +701,12 @@
- $maxsetsize = get_pref($prefs, $userID, 'maxsetsize', 0);
- $minsetsize = get_pref($prefs, $userID, 'minsetsize', 0);
+ $maxsetsize = get_pref($db, $userID, 'maxsetsize', 0);
+ $minsetsize = get_pref($db, $userID, 'minsetsize', 0);
+ $setcompleteness = get_pref($db, $userID, 'setcompleteness', 0);
- $Qcomplete = " AND (\"articlesmax\"=0 OR floor(\"binaries\" * 100 / $GREATEST(1, \"articlesmax\")) >= {$prefs['setcompleteness']})";/// euah ... the horror... but it is ansi sql compliant... no refers to as fields in where clauses ...
+ $Qcomplete = " AND (\"articlesmax\"=0 OR floor(\"binaries\" * 100 / $GREATEST(1, \"articlesmax\")) >= {$setcompleteness})";/// euah ... the horror... but it is ansi sql compliant... no refers to as fields in where clauses ...
@@ -776,7 +779,7 @@
- if (($auto_download > 0) && (get_pref($db, 'use_auto_download', $user_id, 0) > 0) && !urd_user_rights::is_autodownloader($db, $user_id)) {
+ if (($auto_download > 0) && (get_pref($db, 'use_auto_download', $user_id, 0) > 0) && urd_user_rights::is_autodownloader($db, $user_id)) {
Alternatively you could grab this one, and replace the current one with it:
http://urd.googlecode.com/svn/trunk/branches/devel/functions/sets_marking.phpAnd don't forget to restart URDD!