diff options
Diffstat (limited to 'controller')
-rw-r--r-- | controller/visitor.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/controller/visitor.php b/controller/visitor.php index 6044676..fccc287 100644 --- a/controller/visitor.php +++ b/controller/visitor.php | |||
@@ -63,7 +63,10 @@ function discoVisitor() | |||
63 | 63 | ||
64 | // on récupère tout: JSON, HTML, noms et chemins des fichiers | 64 | // on récupère tout: JSON, HTML, noms et chemins des fichiers |
65 | $Albums->readAll(); | 65 | $Albums->readAll(); |
66 | $Albums->fileList = array_reverse($Albums->fileList); | 66 | if(!empty($Albums->fileList)) |
67 | { | ||
68 | $Albums->fileList = array_reverse($Albums->fileList); | ||
69 | } | ||
67 | //var_dump($Albums->fileList); die(); | 70 | //var_dump($Albums->fileList); die(); |
68 | 71 | ||
69 | 72 | ||