Permalink
Browse files

fixed warnings/errors in latest PHP versions

  • Loading branch information...
1 parent 46dc437 commit 25340ceab1e2f4a325792a507d683186a069b39a skodak committed Oct 30, 2005
Showing with 3 additions and 6 deletions.
  1. +1 −1 course/groups.php
  2. +1 −4 grade/exceptions.php
  3. +1 −1 login/signup.php
View
@@ -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 {
View
@@ -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');
View
@@ -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 = "";
}

0 comments on commit 25340ce

Please sign in to comment.