aboutsummaryrefslogtreecommitdiff
path: root/muamba-widget.tpl.php
diff options
context:
space:
mode:
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,
+ ));
+ }
}
}