aboutsummaryrefslogtreecommitdiff
path: root/mod
diff options
context:
space:
mode:
Diffstat (limited to 'mod')
-rw-r--r--mod/developers/views/default/developers/log.php10
1 files changed, 6 insertions, 4 deletions
diff --git a/mod/developers/views/default/developers/log.php b/mod/developers/views/default/developers/log.php
index eca2b4b67..98120ca98 100644
--- a/mod/developers/views/default/developers/log.php
+++ b/mod/developers/views/default/developers/log.php
@@ -7,10 +7,12 @@ $cache = elgg_get_config('log_cache');
$items = $cache->get();
echo '<div class="developers-log">';
-foreach ($items as $item) {
- echo '<pre>';
- print_r($item);
- echo '</pre>';
+if ($items) {
+ foreach ($items as $item) {
+ echo '<pre>';
+ print_r($item);
+ echo '</pre>';
+ }
}
echo '</div>'; \ No newline at end of file