From c6b5102d45125e0e0555f3457cb1234bd0d8f8ad Mon Sep 17 00:00:00 2001
From: Tim Rohaly <tr@202830.no-reply.drupal.org>
Date: Sat, 26 Feb 2011 14:18:04 -0800
Subject: [PATCH] Issue #1074262: Logic bug causing PHP warnings when  is not an array

---
 ui/ui.data.inc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/ui/ui.data.inc b/ui/ui.data.inc
index 18549c0..f55ff23 100755
--- a/ui/ui.data.inc
+++ b/ui/ui.data.inc
@@ -98,7 +98,7 @@ class RulesDataUI {
       if (!is_array($value) && isset($options[$value])) {
         $value = $options[$value];
       }
-      else {
+      elseif (is_array($value)) {
         foreach ($value as $key => $single_value) {
           if (isset($options[$single_value])) {
             $value[$key] = $options[$single_value];
-- 
1.7.0.5

