]> git.mjollnir.org Git - moodle.git/commitdiff
Applying new rs_xxx() functions everywhere. MDL-8134
authorstronk7 <stronk7>
Mon, 29 Jan 2007 10:55:22 +0000 (10:55 +0000)
committerstronk7 <stronk7>
Mon, 29 Jan 2007 10:55:22 +0000 (10:55 +0000)
Merged from MOODLE_17_STABLE

lib/moodlelib.php

index fe2af18b63be5d9fdd5626d5a56bb90cc23e66e4..16173ebf718dd2031ec0a90858ae976b35ddf547 100644 (file)
@@ -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);
     }