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