From 3377cb5d8cdadc454e5a327b12c8084ff1011076 Mon Sep 17 00:00:00 2001 From: plegall Date: Fri, 30 Sep 2022 15:59:29 +0200 Subject: [PATCH] fixes #1738 in case piwigo.org news cannot be read, abort --- admin/include/functions.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/admin/include/functions.php b/admin/include/functions.php index 6455d4eb4..6d1e3437e 100644 --- a/admin/include/functions.php +++ b/admin/include/functions.php @@ -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))