diff options
author | chai <chaifix@163.com> | 2022-03-25 11:04:57 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2022-03-25 11:04:57 +0800 |
commit | 036f02c8dd67ddf9e97bce1ba79d196f5d194a61 (patch) | |
tree | 3f229a44b641be0c4ae85e684d5f171884c17a3a | |
parent | f65e1a9b46f36f7784e9c239872979dd08f54953 (diff) |
*防护
-rw-r--r-- | album.php | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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++; + } } ?> |