$id_user = is_numeric($_POST['_userId']) ? $_POST['_userId'] : die; /* * -------------------------- * Require/Include Files * ------------------------- */ require_once '../../class_ajax_request/classAjax.php'; include_once '../../application/functions.php'; include_once '../../application/DataConfig.php'; /* * ---------------------- * Instance Class * ---------------------- */ $obj = new AjaxRequest(); $response = $obj->getMessageId($id_user, $_SESSION['authenticated']); $countMessagesID = $obj->countMessagesID($id_user, $_SESSION['authenticated']); //<<<<<----- Verified User $verified = $obj->checkUser($id_user) ? 1 : 0; if ($verified == 0) { return false; } $countPosts = count($response); if ($countPosts != 0) { //<----- Count messages > 5 if ($countMessagesID > 5) { ?> <div class="panel-body padding-bottom-zero" id="loadMsgPanel"> <button style="background-color: #FFF;" data-total="<?php echo $countMessagesID; ?>