mirror of
https://github.com/devcode-it/openstamanager.git
synced 2024-12-26 07:44:02 +01:00
Fix minori
This commit is contained in:
parent
e146dc5d7f
commit
573a67d46a
@ -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();
|
||||
|
@ -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">
|
||||
|
Loading…
Reference in New Issue
Block a user