summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2022-03-25 11:04:57 +0800
committerchai <chaifix@163.com>2022-03-25 11:04:57 +0800
commit036f02c8dd67ddf9e97bce1ba79d196f5d194a61 (patch)
tree3f229a44b641be0c4ae85e684d5f171884c17a3a
parentf65e1a9b46f36f7784e9c239872979dd08f54953 (diff)
*防护
-rw-r--r--album.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/album.php b/album.php
index c1aae7c..8a0f17b 100644
--- a/album.php
+++ b/album.php
@@ -56,9 +56,11 @@
<?php
$index = $current_page_index * Config::$music_per_page;
- foreach($musiclist as $music){
- html_music_wide($music, $index + 1);
- $index++;
+ if($musiclist != null) {
+ foreach($musiclist as $music){
+ html_music_wide($music, $index + 1);
+ $index++;
+ }
}
?>