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
commit 8966a517c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

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