Applying new rs_xxx() functions everywhere. MDL-8134
This commit is contained in:
+6
-4
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user