diff --git a/chat.php b/chat.php index fc0e940..df167d5 100644 --- a/chat.php +++ b/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 '
' . $temp[0] . " " . $I['failednotice'] . "
"; } if($U['status']>=2 && $U['eninbox']!=0){