diff options
author | cash <cash.costello@gmail.com> | 2011-07-02 12:28:56 -0400 |
---|---|---|
committer | cash <cash.costello@gmail.com> | 2011-07-02 12:28:56 -0400 |
commit | 9342a351b331b378f1282794218ff9b26d278ce2 (patch) | |
tree | 9ce301853cf5e06ce39543661583f8b28b9939b2 | |
parent | c4a53af23533d44383a87b5180b15e1a01a0e18a (diff) | |
download | elgg-9342a351b331b378f1282794218ff9b26d278ce2.tar.gz elgg-9342a351b331b378f1282794218ff9b26d278ce2.tar.bz2 |
removed warning if no messages in the cache
-rw-r--r-- | mod/developers/views/default/developers/log.php | 10 |
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 |