X-Git-Url: http://git.dj3c1t.com/?a=blobdiff_plain;f=app%2Fcontrollers%2Fusers%2Fmorceaux.php;fp=app%2Fcontrollers%2Fusers%2Fmorceaux.php;h=9c3addae32472591604e3fac5169907a66ef0712;hb=c95fd67beff56f1c071ee59305df00b72bb95ac3;hp=fce394f212f11e407c667b033f49e686f816d54c;hpb=b11b7108a24b4989a7d28c4a595b5cc52dafb888;p=mw_sourceml diff --git a/app/controllers/users/morceaux.php b/app/controllers/users/morceaux.php index fce394f..9c3adda 100644 --- a/app/controllers/users/morceaux.php +++ b/app/controllers/users/morceaux.php @@ -155,7 +155,7 @@ $env, $origin_source_xml_url, $origin_source_xml_content, - true + false ); } } @@ -461,6 +461,7 @@ } function maj_xml(){ + $env = $this->env(); $data = $env->data(); if(!($morceau = $data->source($_GET[$env->param("id")], true))){ $env->erreur("Impossible de lire les informations du morceau"); @@ -472,9 +473,9 @@ 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;