Fix minori

This commit is contained in:
Dasc3er 2021-08-04 16:42:49 +02:00
parent e146dc5d7f
commit 573a67d46a
2 changed files with 2 additions and 2 deletions

View File

@ -53,7 +53,7 @@ class Sessione extends Model
public static function build(Intervento $intervento, Anagrafica $anagrafica, $inizio, $fine)
{
if (!$anagrafica->isTipo('Tecnico')) {
throw new InvalidArgumentException();
throw new InvalidArgumentException("Anagrafica di tipo diverso da Tecnico");
}
$model = new static();

View File

@ -19,7 +19,7 @@
include_once __DIR__.'/../core.php';
if (!$notes->isEmpty()) {
if (!empty($notes) && !$notes->isEmpty()) {
echo '
<div class="box box-info direct-chat direct-chat-info">
<div class="box-header with-border">