mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
Applying new rs_xxx() functions everywhere. MDL-8134
Merged from MOODLE_17_STABLE
This commit is contained in:
parent
2ac48f4811
commit
55e723af60
1 changed files with 2 additions and 6 deletions
|
@ -51,13 +51,11 @@
|
||||||
|
|
||||||
if (!empty($searchtext)) {
|
if (!empty($searchtext)) {
|
||||||
echo "<optgroup label=\"$strsearchresults (" . $availableusers->_numOfRows . ")\">\n";
|
echo "<optgroup label=\"$strsearchresults (" . $availableusers->_numOfRows . ")\">\n";
|
||||||
while (! $availableusers->EOF) {
|
while ($user = rs_fetch_next_record($availableusers)) {
|
||||||
$user = $availableusers->FetchObj();
|
|
||||||
if (!isset($contextusers[$user->id])) {
|
if (!isset($contextusers[$user->id])) {
|
||||||
$fullname = fullname($user, true);
|
$fullname = fullname($user, true);
|
||||||
echo "<option value=\"$user->id\">".$fullname.", ".$user->email."</option>\n";
|
echo "<option value=\"$user->id\">".$fullname.", ".$user->email."</option>\n";
|
||||||
}
|
}
|
||||||
$availableusers->MoveNext();
|
|
||||||
}
|
}
|
||||||
echo "</optgroup>\n";
|
echo "</optgroup>\n";
|
||||||
|
|
||||||
|
@ -66,13 +64,11 @@
|
||||||
echo '<optgroup label="'.get_string('toomanytoshow').'"><option></option></optgroup>'."\n"
|
echo '<optgroup label="'.get_string('toomanytoshow').'"><option></option></optgroup>'."\n"
|
||||||
.'<optgroup label="'.get_string('trysearching').'"><option></option></optgroup>'."\n";
|
.'<optgroup label="'.get_string('trysearching').'"><option></option></optgroup>'."\n";
|
||||||
} else {
|
} else {
|
||||||
while (! $availableusers->EOF) {
|
while ($user = rs_fetch_next_record($availableusers)) {
|
||||||
$user = $availableusers->FetchObj();
|
|
||||||
if (!isset($contextusers[$user->id])) {
|
if (!isset($contextusers[$user->id])) {
|
||||||
$fullname = fullname($user, true);
|
$fullname = fullname($user, true);
|
||||||
echo "<option value=\"$user->id\">".$fullname.", ".$user->email."</option>\n";
|
echo "<option value=\"$user->id\">".$fullname.", ".$user->email."</option>\n";
|
||||||
}
|
}
|
||||||
$availableusers->MoveNext();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue