Skip to content

Commit 129c018

Browse files
committed
Defining '' variable
1 parent d69e68e commit 129c018

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Controllers/SearchController.php

+2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ function index(array $params): void // Just echo something
1212

1313
$data = json_decode(file_get_contents(__DIR__."/../dict.json"), true);
1414

15+
$result = [];
16+
1517
if (json_last_error() === JSON_ERROR_NONE && is_array($data)){
1618

1719
$word = strtolower($params["word"]);

0 commit comments

Comments
 (0)