From 7775e813fb253b6060d43a9b7c0d3ffec78ab840 Mon Sep 17 00:00:00 2001
From: Pasqualle <csuthyb@gmail.com>
Date: Sun, 22 Jan 2012 15:23:11 +0100
Subject: #1410142 return values from getFieldValuesManually() are not used

---
 context_fields_condition_field.inc |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/context_fields_condition_field.inc b/context_fields_condition_field.inc
index 8ece847..e60147a 100644
--- a/context_fields_condition_field.inc
+++ b/context_fields_condition_field.inc
@@ -50,12 +50,15 @@ class context_fields_condition_field extends context_condition {
     // If Entity meta stuff fails, use a more basic approach to
     // getting the field value.
     if (!isset($values)) {
-      $this->getFieldValuesManually($entity_type, $entity);
+      $values = $this->getFieldValuesManually($entity_type, $entity);
     }
 
     // Match all contexts that had this value
     if (!empty($values)) {
       foreach ($values as $val) {
+        if (is_bool($val)) {
+          $val = $val ? 1 : 0;
+        }
         foreach ($this->get_contexts($val) as $context) {
           $this->condition_met($context, $val);
         }
-- 
