Jon:
Thanks; I made the delete() method static for BoincBadgeUser and
BoincBadgeTeam; for BoincBadge it's not static since
(unlike the other 2) it refers to a particular record, by ID.
-- David
On 10-Apr-2014 8:30 AM, Jon Sonntag wrote:
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_projects mailing list
[email protected]
http://lists.ssl.berkeley.edu/mailman/listinfo/boinc_projects
To unsubscribe, visit the above URL and
(near bottom of page) enter your email address.
_______________________________________________
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.