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