diff --git a/ecrire/inc/utils.php b/ecrire/inc/utils.php index 536c2f36fae7c1940521c5d14ea23af2d7cfde60..35f18cedbea6fdea5b60ba169aac9dc6e7515cab 100644 --- a/ecrire/inc/utils.php +++ b/ecrire/inc/utils.php @@ -356,9 +356,12 @@ function spip_log($message = null, $name = null) { if (!isset($regs[1]) or !$logname = $regs[1]) { $logname = null; } - if (!isset($regs[2]) or !$niveau = $regs[2]) { + if (!isset($regs[2])) { $niveau = _LOG_INFO; } + else { + $niveau = intval($regs[2]); + } if ($niveau <= (defined('_LOG_FILTRE_GRAVITE') ? _LOG_FILTRE_GRAVITE : _LOG_INFO_IMPORTANTE)) { if (!$pre) {