aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--muamba.handlers.inc5
1 files changed, 5 insertions, 0 deletions
diff --git a/muamba.handlers.inc b/muamba.handlers.inc
index def07ef..ea1a54d 100644
--- a/muamba.handlers.inc
+++ b/muamba.handlers.inc
@@ -95,6 +95,11 @@ class views_handler_field_muamba_actions extends views_handler_field {
if (isset($values->users_muamba_uid)) {
$transaction = muamba_current_transactions($values->nid, $values->users_muamba_uid);
+ // Current user may be the requester
+ if (empty($transaction)) {
+ $transaction = muamba_current_transactions($values->nid, $user->uid);
+ }
+
if ($transaction['owner'] == $user->uid) {
return theme('muamba_widget_owner', array('transaction' => $transaction));
}