From: stronk7 Date: Mon, 29 Jan 2007 10:55:22 +0000 (+0000) Subject: Applying new rs_xxx() functions everywhere. MDL-8134 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=2ac48f4811665c661485420d9005b8a3ea204f76;p=moodle.git Applying new rs_xxx() functions everywhere. MDL-8134 Merged from MOODLE_17_STABLE --- diff --git a/lib/moodlelib.php b/lib/moodlelib.php index fe2af18b63..16173ebf71 100644 --- a/lib/moodlelib.php +++ b/lib/moodlelib.php @@ -5260,16 +5260,18 @@ function notify_login_failures() { if ($notifyipsrs) { $ipstr = ''; - while ($row = $notifyipsrs->FetchRow()) { - $ipstr .= "'". $row['ip'] ."',"; + while ($row = rs_fetch_next_record($notifyipsrs)) { + $ipstr .= "'". $row->ip ."',"; } + rs_close($notifyipsrs); $ipstr = substr($ipstr,0,strlen($ipstr)-1); } if ($notifyusersrs) { $userstr = ''; - while ($row = $notifyusersrs->FetchRow()) { - $userstr .= "'". $row['info'] ."',"; + while ($row = rs_fetch_next_record($notifyusersrs)) { + $userstr .= "'". $row->info ."',"; } + rs_close($notifyusersrs); $userstr = substr($userstr,0,strlen($userstr)-1); }