MDL-32094 fix various E_STRICT compatibility problems

This commit is contained in:
Petr Skoda 2012-03-18 18:37:24 +01:00
parent 0ed6f71232
commit f20edd5208
27 changed files with 53 additions and 42 deletions

View file

@ -400,7 +400,7 @@ class grade_grade extends grade_object {
* @param array $items array of all grade item ids
* @return void
*/
public function check_locktime_all($items) {
public static function check_locktime_all($items) {
global $CFG, $DB;
$now = time(); // no rounding needed, this is not supposed to be called every 10 seconds

View file

@ -244,7 +244,7 @@ class grade_scale extends grade_object {
*
* @return object
*/
public function fetch_all_global() {
public static function fetch_all_global() {
return grade_scale::fetch_all(array('courseid'=>0));
}