diff --git a/ecrire/inc/utils.php b/ecrire/inc/utils.php
index 3c7e14b24200295d4cbd5b2d40a80144618f3257..19b18209027dabf735785b9c0c74c8500a990a0e 100644
--- a/ecrire/inc/utils.php
+++ b/ecrire/inc/utils.php
@@ -198,7 +198,7 @@ function spip_log($message=NULL, $name=NULL) {
 	preg_match('/^([a-z_]*)\.?(\d)?$/iS', (string) $name, $regs);
 	if (!$logname = $regs[1])
 		$logname = null;
-	if (!$niveau = $regs[2])
+	if (!isset($regs[2]) OR !$niveau = $regs[2])
 		$niveau = _LOG_INFO;
 
 	if ($niveau <=