fixes #1738 in case piwigo.org news cannot be read, abort

This commit is contained in:
plegall
2022-09-30 15:59:29 +02:00
parent d1ff48a6f7
commit 3377cb5d8c
+4
View File
@@ -3501,6 +3501,10 @@ function get_piwigo_news($start, $count)
file_put_contents($cache_path, serialize($all_news));
}
}
else
{
return array();
}
}
if (is_null($all_news))