mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-08-06 22:06:41 +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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user