From a9a72d76f9845bef6c8344944b395dfc63b8b4e6 Mon Sep 17 00:00:00 2001 From: stronk7 Date: Mon, 29 Jan 2007 10:53:14 +0000 Subject: [PATCH] Applying new rs_xxx() functions everywhere. MDL-8134 --- lib/moodlelib.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/moodlelib.php b/lib/moodlelib.php index 9725a5872e6..a392fd5c98a 100644 --- a/lib/moodlelib.php +++ b/lib/moodlelib.php @@ -5379,16 +5379,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); }