X-Git-Url: http://git.dj3c1t.com/?a=blobdiff_plain;f=app%2Fcontrollers%2Fcontent%2Fsources.php;h=82d9b6d0556de118b6e6e70ec234a60a1455b17c;hb=refs%2Ftags%2Fsourceml.1.1.2;hp=f76d956d8c17a6aa4c976a0fd94bd798d81ac5ef;hpb=9391cb9ccb3dd2884e7be2f15aa729733288f1e5;p=mw_sourceml diff --git a/app/controllers/content/sources.php b/app/controllers/content/sources.php index f76d956..82d9b6d 100644 --- a/app/controllers/content/sources.php +++ b/app/controllers/content/sources.php @@ -113,7 +113,10 @@ { if(isset($_sources[$this->source["id"]]) && $_sources[$this->source["id"]]) { foreach($_sources[$this->source["id"]] as $id_source) { if(($sources["list"][$id_source] = $data->source($id_source, true)) !== false) - { $sources["total"]++; + { if(!isset($sources["list"][$id_source]["ordre"])){ + $sources["list"][$id_source]["ordre"] = 0; + } + $sources["total"]++; } else { $this->erreur("Impossible de lire les informations de l'une des sources");