X-Git-Url: http://git.dj3c1t.com/?a=blobdiff_plain;f=app%2Fcontrollers%2Fusers%2Fpistes.php;fp=app%2Fcontrollers%2Fusers%2Fpistes.php;h=30b0d0481b1c3e7dc1df241f9ecaa9e4e114ac12;hb=c95fd67beff56f1c071ee59305df00b72bb95ac3;hp=c1a70dfbfffa69b74ba2f22ef41b82e37b5c22f2;hpb=b11b7108a24b4989a7d28c4a595b5cc52dafb888;p=mw_sourceml diff --git a/app/controllers/users/pistes.php b/app/controllers/users/pistes.php index c1a70df..30b0d04 100644 --- a/app/controllers/users/pistes.php +++ b/app/controllers/users/pistes.php @@ -160,7 +160,7 @@ $env, $origin_source_xml_url, $origin_source_xml_content, - true + false ); } } @@ -466,6 +466,7 @@ } function maj_xml(){ + $env = $this->env(); $data = $env->data(); if(!($piste = $data->source($_GET[$env->param("id")], true))){ $env->erreur("Impossible de lire les informations de la piste"); @@ -476,10 +477,11 @@ $env->erreur("vous n'avez pas la permission d'editer cette piste"); return; } + if - ( isset($_GET[$env->param("id")]) - && isset($_GET[$env->param("xml")]) - && ($_GET[$env->param("xml")] == "derviation" ? isset($_GET[$env->param("derivation")]) : true) + ( !isset($_GET[$env->param("id")]) + || !isset($_GET[$env->param("xml")]) + || ($_GET[$env->param("xml")] == "derviation" && !isset($_GET[$env->param("derivation")])) ){ $env->erreur("parametre de fichier xml manquant"); return;