1
0
mirror of https://github.com/lrsjng/h5ai.git synced 2025-08-08 14:56:35 +02:00

Merge pull request #619 from djtm/patch-1

Fix Invalid argument supplied for foreach() in class-archive.php:138
This commit is contained in:
Lars Jung
2019-04-16 14:08:23 +02:00
committed by GitHub

View File

@@ -135,6 +135,9 @@ class Archive {
} }
private function add_hrefs($hrefs) { private function add_hrefs($hrefs) {
if(!is_array($hrefs)){
$hrefs=array($hrefs);
}
foreach ($hrefs as $href) { foreach ($hrefs as $href) {
if (trim($href) === '') { if (trim($href) === '') {
continue; continue;