check(true)) { die(); } } if (!empty($_SESSION["utente"]) && !empty($_SESSION["utente"]->oe)) { $total = $pdo->go("SELECT r_comunicazioni_utenti.codice FROM r_comunicazioni_utenti WHERE r_comunicazioni_utenti.codice_operatore = :oe AND letto = \"N\" AND codice_ente = :ente LIMIT 0,1", [":ente"=>$_SESSION["ente"]->codice,":oe" => $_SESSION["utente"]->oe["codice"]])->rowCount(); if ($total > 0) { echo ""; } } else { if (!empty($_SESSION["utente"]) && !empty($_SESSION["utente"]->enteInnovativo)) { $chats = Communicator::getMyChats(); if (!empty($chats) && in_array("N",array_column($chats,"letto"))) { echo ""; } } } ?>