about summary refs log tree commit diff stats
path: root/backend.php
diff options
context:
space:
mode:
authorAndrew Dolgov <noreply@fakecake.org>2017-02-26 13:12:33 +0300
committerAndrew Dolgov <noreply@fakecake.org>2017-02-26 13:12:33 +0300
commite01f57a3d98943954372110dc75e8d731fbacc10 (patch)
tree2d57e3a2368984f03507f2650f0b94273dced625 /backend.php
parentb8ae4b31c129031e89e4c7fb9801d6761513dd73 (diff)
downloadthe-epube-e01f57a3d98943954372110dc75e8d731fbacc10.tar.gz
the-epube-e01f57a3d98943954372110dc75e8d731fbacc10.tar.xz
further offline improvements
Diffstat (limited to 'backend.php')
-rw-r--r--backend.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/backend.php b/backend.php
index 5d30f9d..308d2df 100644
--- a/backend.php
+++ b/backend.php
@@ -93,7 +93,8 @@
 			if ($line = $result->fetchArray()) {
 				print $line["pagination"];
 			} else {
-				print json_encode(["error" => "NOT_FOUND"]);
+				header($_SERVER["SERVER_PROTOCOL"]." 404 Not Found");
+				echo "File not found.";
 			}
 		}