Correction variable non initialisée
This commit is contained in:
parent
b2a807c078
commit
717fc5320f
2 changed files with 2 additions and 2 deletions
|
|
@ -69,7 +69,7 @@ if ( !$target ) {
|
|||
throw new UserException("Ce document n'existe pas.");
|
||||
}
|
||||
}
|
||||
if ($f->archivee)
|
||||
if (! $target && $f->archivee)
|
||||
{
|
||||
throw new UserException("Ce document est archivé, vous n'avez pas le droit de le modifier");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue