no result to display if the list is empty

master
Y 2016-01-26 19:55:42 +01:00
parent c66afedb17
commit 18866c3157
1 changed files with 16 additions and 10 deletions

View File

@ -62,6 +62,11 @@ if (array_key_exists('doDownload', $_REQUEST)) {
$json = @$_REQUEST['queryDone'];
}
if ($json) {
if ($json == '[]') {
?>
<p>No result.</p>
<?php
} else {
$current = (array_key_exists('doThumbnails', $_REQUEST) ? $_REQUEST['doThumbnails'] : @$_REQUEST['currentDoc']);
?>
<h2>Documents found</h2>
@ -88,6 +93,7 @@ if (array_key_exists('doDownload', $_REQUEST)) {
<?php
}
}
}
?>
</section>
<section id="thumbs">