From f8da1aa6b4c77e839fde883e2aef244b4fe18bf8 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Fri, 7 Oct 2011 16:07:09 -0300 Subject: Minor fix --- muamba.handlers.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/muamba.handlers.inc b/muamba.handlers.inc index 37033ee..16c1f38 100644 --- a/muamba.handlers.inc +++ b/muamba.handlers.inc @@ -13,7 +13,9 @@ class views_handler_field_muamba_status extends views_handler_field { * Renders the field. */ function render($values) { - return muamba_statuses($values->muamba_status); + if (!empty($values->muamba_status)) { + return muamba_statuses($values->muamba_status); + } } } -- cgit v1.2.3