Fix access array offset on value of type bool warning
This commit is contained in:
2
chat.php
2
chat.php
@ -2250,7 +2250,7 @@ function print_notifications(){
|
||||
$stmt=$db->prepare('SELECT loginfails FROM ' . PREFIX . 'members WHERE nickname=?;');
|
||||
$stmt->execute([$U['nickname']]);
|
||||
$temp=$stmt->fetch(PDO::FETCH_NUM);
|
||||
if($temp[0]>0){
|
||||
if($temp && $temp[0]>0){
|
||||
echo '<p align="middle">' . $temp[0] . " " . $I['failednotice'] . "</p>";
|
||||
}
|
||||
if($U['status']>=2 && $U['eninbox']!=0){
|
||||
|
Reference in New Issue
Block a user