aboutsummaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-19 12:49:29 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-19 12:49:29 +0000
commit9026d48d405ba43dc6218ecfe34f6dfeb7b16104 (patch)
treefa6c03fea00993fc4e9635b2a6acef3e27b8a665 /views
parent5893eaf6588ce7b6823fa78f54c0042983389162 (diff)
downloadelgg-9026d48d405ba43dc6218ecfe34f6dfeb7b16104.tar.gz
elgg-9026d48d405ba43dc6218ecfe34f6dfeb7b16104.tar.bz2
Fixed #50: River widgets
http://trac.elgg.org/elgg/ticket/50 git-svn-id: https://code.elgg.org/elgg/trunk@992 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views')
-rw-r--r--views/default/river/dashboard.php10
1 files changed, 7 insertions, 3 deletions
diff --git a/views/default/river/dashboard.php b/views/default/river/dashboard.php
index 152923f66..b1c0e614a 100644
--- a/views/default/river/dashboard.php
+++ b/views/default/river/dashboard.php
@@ -13,9 +13,13 @@
$river = $vars['river'];
?>
<div id="river">
- <h1><?php echo elgg_echo('river'); ?></h1>
<?
- foreach ($river as $r)
- echo "<div>$r</div>";
+ if (($river) && (count($river)>0))
+ {
+ foreach ($river as $r)
+ echo "<div>$r</div>";
+ }
+ else
+ echo elgg_echo('river:widget:noactivity');
?>
</div> \ No newline at end of file