summaryrefslogtreecommitdiff
path: root/view/discographie.php
diff options
context:
space:
mode:
Diffstat (limited to 'view/discographie.php')
-rw-r--r--view/discographie.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/view/discographie.php b/view/discographie.php
index 1660b0c..206a9b8 100644
--- a/view/discographie.php
+++ b/view/discographie.php
@@ -15,7 +15,7 @@ ob_start();
15?> 15?>
16 <script type="text/javascript" src="public/main.js" ></script> 16 <script type="text/javascript" src="public/main.js" ></script>
17<?php 17<?php
18if(isset($_GET['action']) && $_GET['action'] == 'edition') 18if(isset($_GET['action']) && $_GET['action'] === 'edition')
19{ 19{
20 20
21 // bibliothèques JS ckeditor 21 // bibliothèques JS ckeditor
@@ -67,7 +67,7 @@ for($i = 0; $i < $Albums->fileListCount; $i++)
67// éditeur ou bouton "Nouvel album" 67// éditeur ou bouton "Nouvel album"
68if($_SESSION['admin'] == 1) 68if($_SESSION['admin'] == 1)
69{ 69{
70 if(isset($_GET['action']) && $_GET['action'] == 'edition' && $fileCode == '') 70 if(isset($_GET['action']) && $_GET['action'] === 'edition' && $fileCode === '')
71 { 71 {
72 $style = 'class="articleAvecEditeur"'; 72 $style = 'class="articleAvecEditeur"';
73?> 73?>
@@ -112,9 +112,9 @@ for($i = 0; $i < $Albums->fileListCount; $i++)
112?> 112?>
113 <article id="<?= $Albums->fileList[$i]['fileCode'] ?>" <?= $style ?>> 113 <article id="<?= $Albums->fileList[$i]['fileCode'] ?>" <?= $style ?>>
114<?php 114<?php
115 // formulaires et éditeur 115 // formulaires et éditeur à la place de l'article à modifier
116 if(isset($_SESSION['admin']) && $_SESSION['admin'] == 1 116 if(isset($_SESSION['admin']) && $_SESSION['admin'] == 1
117 && isset($_GET['action']) && $_GET['action'] == 'edition' 117 && isset($_GET['action']) && $_GET['action'] === 'edition'
118 && $Albums->fileList[$i]['fileCode'] == $fileCode) 118 && $Albums->fileList[$i]['fileCode'] == $fileCode)
119 { 119 {
120 ?> 120 ?>