diff --git a/ecrire/inc/utils.php b/ecrire/inc/utils.php
index 99580bcb50a4926f8215c13f8a3133b2f5962f74..c8f33892d5ce7801164341d7b896dc77587d8fe6 100644
--- a/ecrire/inc/utils.php
+++ b/ecrire/inc/utils.php
@@ -2787,8 +2787,8 @@ function init_var_mode() {
 				} elseif (in_array('calcul', $var_mode)) {
 					define('_VAR_MODE', 'calcul');
 				}
-				$var_mode = array_diff($var_mode, array('calcul', 'recalcul'));
 			}
+			$var_mode = array_diff($var_mode, array('calcul', 'recalcul'));
 			if ($var_mode) {
 				include_spip('inc/autoriser');
 				// autoriser preview si preview seulement, et sinon autoriser debug