From d78ab7d0a9e5c7aa8962f9d7ad6700cb42f8bec8 Mon Sep 17 00:00:00 2001 From: Cerdic <cedric@yterium.com> Date: Thu, 17 Nov 2011 09:32:53 +0000 Subject: [PATCH] eviter un warning PHP --- ecrire/inc/utils.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ecrire/inc/utils.php b/ecrire/inc/utils.php index 3c7e14b242..19b1820902 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 <= -- GitLab