diff --git a/ecrire/inc/utils.php b/ecrire/inc/utils.php
index 89bc1d23dd50aa66dae9d184529617d34b9205c1..ec6c845d4d2baa1ffbbc6242ddf703b6772478b7 100644
--- a/ecrire/inc/utils.php
+++ b/ecrire/inc/utils.php
@@ -1496,6 +1496,10 @@ function find_in_path($file, $dirname = '', $include = false) {
 	static $inc = array(); # cf http://trac.rezo.net/trac/spip/changeset/14743
 	static $c = '';
 
+	if (!$file and !strlen($file)) {
+		return false;
+	}
+
 	// on calcule le chemin si le dossier skel a change
 	if ($c != $GLOBALS['dossier_squelettes']) {
 		// assurer le non plantage lors de la montee de version :