diff --git a/cosmogramme/php/_init.php b/cosmogramme/php/_init.php
index 24ccf01e4abba5250d8cbfea17999e2607be07a6..45275f147864aae00cacdd8176987caef5ca0c02 100644
--- a/cosmogramme/php/_init.php
+++ b/cosmogramme/php/_init.php
@@ -11,7 +11,7 @@ date_default_timezone_set('Europe/Paris');
 
 // Add cg: site= nom du site Opac (Ex: mabellebib.net)
 $argc = isset($argc) ? $argc : 0;
-if ($argc != 3) {
+if ($argc != 4) {
 	if ($_SERVER['SERVER_ADDR'] != "127.0.0.1" and $_SERVER['SERVER_ADDR'] != "::1")
 	{
 		$site= "/" . substr($_SERVER['SCRIPT_NAME'], 1, strpos($_SERVER['SCRIPT_NAME'], "/" . APPLI . "/") -1) . "/" ;
@@ -43,7 +43,7 @@ require("fonctions/variables.php");
 $cfg=lireConfig($cfgfile);
 
 // Add cg
-if($argc == 3) chdir("../../../php/cosmo/");
+if($argc == 4) chdir("../../../php/cosmo/");
 
 // Mode web_service
 if(strpos($_SERVER["REQUEST_URI"],"/web_services/")) $mode_web_service=true;