aboutsummaryrefslogtreecommitdiff
path: root/muamba-widget.tpl.php
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2011-12-08 18:23:31 -0200
committerSilvio Rhatto <rhatto@riseup.net>2011-12-08 18:23:31 -0200
commitf0400992598835703b02307a42efea5289d384a9 (patch)
treee5bfee4a2bff9df00bdad3ec54c296c06b17963a /muamba-widget.tpl.php
parent757773716a7b61544d25e0e29f2fcb9b1e811788 (diff)
downloadmuamba-f0400992598835703b02307a42efea5289d384a9.tar.gz
muamba-f0400992598835703b02307a42efea5289d384a9.tar.bz2
Minor fix
Diffstat (limited to 'muamba-widget.tpl.php')
-rw-r--r--muamba-widget.tpl.php14
1 files changed, 8 insertions, 6 deletions
diff --git a/muamba-widget.tpl.php b/muamba-widget.tpl.php
index 7d4cc5a..6c99898 100644
--- a/muamba-widget.tpl.php
+++ b/muamba-widget.tpl.php
@@ -55,12 +55,14 @@ if ($node->uid != $user->uid) {
}
}
else {
- foreach ($transactions as $transaction) {
- $content .= theme('muamba_widget_owner', array(
- 'transaction' => $transaction,
- 'size' => $size,
- 'messages' => $messages,
- ));
+ if (!empty($transactions)) {
+ foreach ($transactions as $transaction) {
+ $content .= theme('muamba_widget_owner', array(
+ 'transaction' => $transaction,
+ 'size' => $size,
+ 'messages' => $messages,
+ ));
+ }
}
}