gerarchia <= 10) { if (!empty($sourceID)) { $id = $sourceID; } $ignoreTable = true; $sql = "SELECT codice FROM b_classe_documentale WHERE codice = :codice AND codice_ente = :codice_ente AND soft_delete = 'N' "; $bind[":codice"] = $id; $bind[":codice_ente"] = 0; if (isset($_SESSION["ente"])) { $bind[":codice_ente"] = $_SESSION["ente"]->codice; } $risultato = $pdo->go($sql,$bind); if ($risultato->rowCount() > 0) { $return = true; } } ?>