diff --git a/ecrire/inc/presentation_mini.php b/ecrire/inc/presentation_mini.php
index 28a2eee6c435aeb43567865b057f27c1aeb8e14b..401a672a0ab29eb6105eebab7d8a45ca1e4f3236 100644
--- a/ecrire/inc/presentation_mini.php
+++ b/ecrire/inc/presentation_mini.php
@@ -189,7 +189,7 @@ function html_tests_js(){
 **/
 function info_maj_spip(){
 
-	$maj = $GLOBALS['meta']['info_maj_spip'];
+	$maj = isset($GLOBALS['meta']['info_maj_spip']) ? $GLOBALS['meta']['info_maj_spip'] : null;
 	if (!$maj)
 		return "";
 
diff --git a/ecrire/public/debusquer.php b/ecrire/public/debusquer.php
index 2bc2b4c6ec2334e1df3de82dc6a44d319b681fcb..f63396e33a497cddc6f7c9ed041fdd6d9f353ff3 100644
--- a/ecrire/public/debusquer.php
+++ b/ecrire/public/debusquer.php
@@ -63,8 +63,12 @@ function public_debusquer_dist($message = '', $lieu = ''){
 		$urgence = (_DEBUG_MAX_SQUELETTE_ERREURS AND count($tableau_des_erreurs)>_DEBUG_MAX_SQUELETTE_ERREURS);
 		if (!$urgence) return;
 	}
-	if (empty($debug_objets['principal']))
-		$debug_objets['principal'] = $GLOBALS['fond'];
+	if (empty($debug_objets['principal'])) {
+		// espace public ?
+		if (isset($GLOBALS['fond'])) {
+			$debug_objets['principal'] = $GLOBALS['fond'];
+		} 
+	}
 
 	include_spip('inc/autoriser');
 	if (!autoriser('debug')) return;