summaryrefslogtreecommitdiff
path: root/backend.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2020-09-22 15:25:24 +0300
committerAndrew Dolgov <[email protected]>2020-09-22 15:25:24 +0300
commit2df368d49228ed4529a06501fdc5c2ce8eb631d5 (patch)
tree301a53114d416fbd37d67eafa4b41a7fa4edebdc /backend.php
parent7349c8fbae44928924293219df8f3c80794e8ff3 (diff)
show dictionary popup before request completes
Diffstat (limited to 'backend.php')
-rw-r--r--backend.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/backend.php b/backend.php
index e245fb2..6318853 100644
--- a/backend.php
+++ b/backend.php
@@ -290,6 +290,8 @@
array_push($result, "No results for: <b>$orig_word</b>");
print json_encode(["result" => $result]);
+ } else {
+ print json_encode(["result" => ["Dictionary lookups are disabled."]]);
}
break;