BoincBadge, BoincBadgeUser, and BoincBadgeTeam classes in
html/inc/boinc_db.php have a mixture of static and non-static functions.
 They all need to be declared as static since html/ops/badge_assign.php
doesn't instantiate any of the aforementioned objects and therefore
requires static functions.

For example, change:

 function delete($clause) {
     $db = BoincDb::get();
     $db->delete_aux('badge_user', $clause);
 }

To:

 static function delete($clause) {
     $db = BoincDb::get();
     $db->delete_aux('badge_user', $clause);
 }

So, if your badges aren't updating properly, you now know why.  After
making the fixes, run the badge_assign.php from the command line to verify
it is working properly.  There should be no errors displayed.

Jon Sonntag
_______________________________________________
boinc_dev mailing list
[email protected]
http://lists.ssl.berkeley.edu/mailman/listinfo/boinc_dev
To unsubscribe, visit the above URL and
(near bottom of page) enter your email address.

Reply via email to