plusieurs auteurs pour les sources
[mw_sourceml] / app / out / default / views / sources / piste / view.php
index 5d089a0..f168843 100644 (file)
@@ -1,13 +1,13 @@
 <h2>
 <?php $ariane_params = array("piste" => $this->out["piste"]["id"]); ?>
-<?php if($this->out["album"]) : $ariane_params["album"] = $this->out["album"]["id"]; ?>
+<?php if(isset($this->out["album"]) && $this->out["album"]) : $ariane_params["album"] = $this->out["album"]["id"]; ?>
 <a href="<?php echo $this->url("sources/album/view", $ariane_params) ?>">
 <?php echo $this->out["album"]["titre"] ?>
 </a>
 &raquo;
 <?php endif; ?>
 
-<?php if($this->out["morceau"]) : $ariane_params["morceau"] = $this->out["morceau"]["id"]; ?>
+<?php if(isset($this->out["morceau"]) && $this->out["morceau"]) : $ariane_params["morceau"] = $this->out["morceau"]["id"]; ?>
 <a href="<?php echo $this->url("sources/morceau/view", $ariane_params) ?>">
 <?php echo $this->out["morceau"]["reference"] ? $this->out["morceau"]["reference"]["titre"] : $this->out["morceau"]["titre"] ?>
 </a>