diff --git a/ecrire/inc/autoriser.php b/ecrire/inc/autoriser.php index a1ecf2542f0678ccb66a8b369eae065f1f959dfd..bb354272fafa28fbf5571995b2738167ff0886ce 100644 --- a/ecrire/inc/autoriser.php +++ b/ecrire/inc/autoriser.php @@ -162,7 +162,7 @@ function autoriser_dist(string $faire, ?string $type = '', $id = null, $qui = nu } elseif (is_numeric($qui)) { $qui = sql_fetsel('*', 'spip_auteurs', 'id_auteur=' . $qui); if (!$qui) { - return false; + $qui = ['statut' => '', 'id_auteur' => 0, 'webmestre' => 'non']; } }