From 3947bbb52a5ba6cf3976b71df7baf8275cd6dc19 Mon Sep 17 00:00:00 2001 From: bruno Date: Mon, 5 Feb 2024 22:56:20 +0100 Subject: [PATCH] Fix script on open page --- lib/script_data.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/lib/script_data.php b/lib/script_data.php index eff7baf..5c2d1d1 100644 --- a/lib/script_data.php +++ b/lib/script_data.php @@ -1,17 +1,18 @@ 0 && count(array_filter(array_keys($phpArray), 'is_string')) === count($phpArray)) { // Generate JavaScript code to save each array element to local storage - echo ""; + $out.= ""; } else { - echo ""; + $out = ""; } + return $out; } \ No newline at end of file