diff options
author | Bjoern Schiessle <bjoern@schiessle.org> | 2016-08-17 11:39:27 +0300 |
---|---|---|
committer | Bjoern Schiessle <bjoern@schiessle.org> | 2016-08-17 11:39:27 +0300 |
commit | afa58f346bdc5f1666b5229238d56ac7b5d2c378 (patch) | |
tree | 65d2e860c7f9644e21d719b0f0d8fe2f2cb6e935 | |
parent | 5be7226ff59e2cda735201c2abcc6bc807b24e2a (diff) |
show a message if no statistics are available instead of empty tables
-rw-r--r-- | templates/part.content.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/templates/part.content.php b/templates/part.content.php index a50b93c..9ddcae0 100644 --- a/templates/part.content.php +++ b/templates/part.content.php @@ -21,6 +21,10 @@ ?> <div id="surveyResults"> + <?php if(empty($_['statistics'])) { ?> + No statistics available, please try later + <?php } else { ?> + <div class="section" id="generalStatistics"> <h1>General Statistics</h1> @@ -84,5 +88,5 @@ </div> <?php } ?> <?php } ?> - + <?php } ?> </div> |