From 313b09d987151f83a62ed83ea3854c2655af309a Mon Sep 17 00:00:00 2001 From: Kreisler Ramirez Date: Mon, 2 May 2022 12:18:11 -0500 Subject: [PATCH] fix rollback 'Operador ternario' --- src/JSONDB.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/JSONDB.php b/src/JSONDB.php index 6074412..8787389 100644 --- a/src/JSONDB.php +++ b/src/JSONDB.php @@ -104,7 +104,7 @@ private function check_file() } else { // Read content of JSON file $content = file_get_contents($this->file); - $content = json_decode(($content == '') ? '[]' : $content, true); + $content = json_decode($content, true); } // Check if its arrays of jSON