aboutsummaryrefslogtreecommitdiff
path: root/views/default/page/elements/messages.php
diff options
context:
space:
mode:
authorewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-14 20:35:00 +0000
committerewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-14 20:35:00 +0000
commit9c7cdaa96ceae5cfacac8120dfe4a5de22376982 (patch)
tree02e9126e19e319eff3810f62dc6691937fb7c7d3 /views/default/page/elements/messages.php
parentb75d27a6241a296e5991ab8f23a59563557e9a68 (diff)
downloadelgg-9c7cdaa96ceae5cfacac8120dfe4a5de22376982.tar.gz
elgg-9c7cdaa96ceae5cfacac8120dfe4a5de22376982.tar.bz2
Cleaned up views/default/page/ directory
git-svn-id: http://code.elgg.org/elgg/trunk@8231 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/page/elements/messages.php')
-rw-r--r--views/default/page/elements/messages.php9
1 files changed, 4 insertions, 5 deletions
diff --git a/views/default/page/elements/messages.php b/views/default/page/elements/messages.php
index 3663bb796..e4e6030f1 100644
--- a/views/default/page/elements/messages.php
+++ b/views/default/page/elements/messages.php
@@ -9,10 +9,9 @@
* @uses $vars['object'] The array of message registers
*/
-if (isset($vars['object']) && is_array($vars['object']) && sizeof($vars['object']) > 0) {
-
- echo '<ul class="elgg-system-messages">';
+echo '<ul class="elgg-system-messages">';
+if (isset($vars['object']) && is_array($vars['object']) && sizeof($vars['object']) > 0) {
foreach ($vars['object'] as $type => $list ) {
foreach ($list as $message) {
echo "<li class=\"elgg-message elgg-state-$type\">";
@@ -23,6 +22,6 @@ if (isset($vars['object']) && is_array($vars['object']) && sizeof($vars['object'
echo '</li>';
}
}
-
- echo '</ul>';
}
+
+echo '</ul>';