digestTest: don't display empty digest when not logged in
This commit is contained in:
parent
c68ac04020
commit
6ec602e1a4
|
@ -7,6 +7,7 @@ class Backend extends Handler {
|
|||
}
|
||||
|
||||
function digestTest() {
|
||||
if (isset($_SESSION['uid'])) {
|
||||
header("Content-type: text/html");
|
||||
|
||||
$rv = Digest::prepare_headlines_digest($_SESSION['uid'], 1, 1000);
|
||||
|
@ -15,6 +16,9 @@ class Backend extends Handler {
|
|||
print $rv[0];
|
||||
print "<h1>Plain text</h1>";
|
||||
print "<pre>".$rv[3]."</pre>";
|
||||
} else {
|
||||
print error_json(6);
|
||||
}
|
||||
}
|
||||
|
||||
private function display_main_help() {
|
||||
|
|
Loading…
Reference in New Issue