diff options
author | polo <ordipolo@gmx.fr> | 2022-02-18 05:38:40 +0100 |
---|---|---|
committer | polo <ordipolo@gmx.fr> | 2022-02-18 05:38:40 +0100 |
commit | 9a1fb624fd1089087bd363551ba64f5862d9919f (patch) | |
tree | 87f33f1b1bede404efa2cfd8f4285d32e149d986 /controller/admin.php | |
parent | f2c1f219dcd6e25b812d4dbed46f4c0c30541d83 (diff) | |
download | melaine-9a1fb624fd1089087bd363551ba64f5862d9919f.zip |
miniatures GD
Diffstat (limited to 'controller/admin.php')
-rw-r--r-- | controller/admin.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/controller/admin.php b/controller/admin.php index 7f22711..370426b 100644 --- a/controller/admin.php +++ b/controller/admin.php | |||
@@ -81,11 +81,13 @@ function discoEdit($fileCode, $suppression) | |||
81 | // modèle | 81 | // modèle |
82 | $Albums = new Album($page_actuelle); | 82 | $Albums = new Album($page_actuelle); |
83 | $Albums->makeFileList(); | 83 | $Albums->makeFileList(); |
84 | //var_dump($Albums); | 84 | |
85 | // contenu: JSON, HTML, noms et chemins des fichiers | 85 | // contenu: JSON, HTML, noms et chemins des fichiers |
86 | $Albums->readAll(); | 86 | $Albums->readAll(); |
87 | $Albums->fileList = array_reverse($Albums->fileList); | 87 | if(!empty($Albums->fileList)) |
88 | //var_dump($Albums); | 88 | { |
89 | $Albums->fileList = array_reverse($Albums->fileList); | ||
90 | } | ||
89 | //var_dump($Albums->fileList); | 91 | //var_dump($Albums->fileList); |
90 | 92 | ||
91 | // nouvel album | 93 | // nouvel album |