diff --git a/save.php b/save.php index 4b7f8cf9..c817f378 100644 --- a/save.php +++ b/save.php @@ -7,6 +7,9 @@ $data = json_decode($file); unset($file);//prevent memory leaks for large json. //insert data here + if($data[0] == $string) { array_push($data, $string);