mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 01:16:44 +02:00
MDL-32094 fix various E_STRICT compatibility problems
This commit is contained in:
parent
0ed6f71232
commit
f20edd5208
27 changed files with 53 additions and 42 deletions
|
@ -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
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue