diff --git a/ecrire/inc/invalideur.php b/ecrire/inc/invalideur.php
index e73ed1e4207442544822d0d17f7d3838d72dbab0..890b02aefd3891331372e02651099052e7618355 100644
--- a/ecrire/inc/invalideur.php
+++ b/ecrire/inc/invalideur.php
@@ -203,8 +203,8 @@ function purger_repertoire($dir, $options = array()) {
 		} else {
 			if (is_dir($chemin)) {
 				$opts = $options;
-				if (isset($otpions['limit'])) {
-					$otps['limit'] = $otpions['limit'] - $total;
+				if (isset($options['limit'])) {
+					$opts['limit'] = $options['limit'] - $total;
 				}
 				$total += purger_repertoire($chemin, $opts);
 				if (isset($options['subdir']) && $options['subdir']) {