From 9342a351b331b378f1282794218ff9b26d278ce2 Mon Sep 17 00:00:00 2001 From: cash Date: Sat, 2 Jul 2011 12:28:56 -0400 Subject: removed warning if no messages in the cache --- mod/developers/views/default/developers/log.php | 10 ++++++---- 1 file 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 '
'; -foreach ($items as $item) { - echo '
';
-	print_r($item);
-	echo '
'; +if ($items) { + foreach ($items as $item) { + echo '
';
+		print_r($item);
+		echo '
'; + } } echo '
'; \ No newline at end of file -- cgit v1.2.3