aboutsummaryrefslogtreecommitdiff
path: root/mod/developers/views/default
diff options
context:
space:
mode:
authorcash <cash.costello@gmail.com>2011-07-02 12:28:56 -0400
committercash <cash.costello@gmail.com>2011-07-02 12:28:56 -0400
commit9342a351b331b378f1282794218ff9b26d278ce2 (patch)
tree9ce301853cf5e06ce39543661583f8b28b9939b2 /mod/developers/views/default
parentc4a53af23533d44383a87b5180b15e1a01a0e18a (diff)
downloadelgg-9342a351b331b378f1282794218ff9b26d278ce2.tar.gz
elgg-9342a351b331b378f1282794218ff9b26d278ce2.tar.bz2
removed warning if no messages in the cache
Diffstat (limited to 'mod/developers/views/default')
-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