Applying new rs_xxx() functions everywhere. MDL-8134

This commit is contained in:
stronk7
2007-01-29 10:53:14 +00:00
parent 31e0c05036
commit a9a72d76f9
+6 -4
View File
@@ -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);
}