mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 17:02:03 +02:00
fixed warnings/errors in latest PHP versions; merge from MOODLE_15_STABLE
This commit is contained in:
parent
7fa92da9fa
commit
454727f6c1
@ -185,7 +185,7 @@
|
||||
natcasesort($nonmembers);
|
||||
|
||||
if (empty($selectedgroup)) { // Choose the first group by default
|
||||
if ($selectedgroup = array_shift(array_keys($listgroups))) {
|
||||
if ($selectedgroup = array_shift($temparr = array_keys($listgroups))) {
|
||||
$members = $listmembers[$selectedgroup];
|
||||
}
|
||||
} else {
|
||||
|
@ -125,10 +125,7 @@
|
||||
}
|
||||
|
||||
if (empty($selectedgrade_item)) { // Choose the first group by default
|
||||
// doesn't work with php 5 :(
|
||||
// $selectedgrade_item = array_shift(array_keys($listgrade_items));
|
||||
$keys = array_keys($listgrade_items);
|
||||
$selectedgrade_item = array_shift($keys);
|
||||
$selectedgrade_item = array_shift($temparr = array_keys($listgrade_items));
|
||||
}
|
||||
|
||||
include('exceptions.html');
|
||||
|
@ -53,7 +53,7 @@
|
||||
}
|
||||
|
||||
if (!empty($err)) {
|
||||
$focus = "form.".array_shift(array_flip(get_object_vars($err)));
|
||||
$focus = "form.".array_shift($temparr = array_flip(get_object_vars($err)));
|
||||
} else {
|
||||
$focus = "";
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user