From a921c43b20869c535159cd9ab0075845d25406b3 Mon Sep 17 00:00:00 2001
From: Staratel <Staratel@1209848.no-reply.drupal.org>
Date: Wed, 22 Aug 2012 13:21:49 +0200
Subject: [PATCH] Issue #1742740 by Staratel: Fixed Add magic method __isset()
 to FeedsConfigurable to use default entity wrapping.

---
 includes/FeedsConfigurable.inc | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/includes/FeedsConfigurable.inc b/includes/FeedsConfigurable.inc
index 0b9b620b..2c170c75 100644
--- a/includes/FeedsConfigurable.inc
+++ b/includes/FeedsConfigurable.inc
@@ -75,6 +75,13 @@ abstract class FeedsConfigurable {
     $this->disabled = FALSE;
   }
 
+  /**
+   * Override magic method __isset(). This is needed due to overriding __get().
+   */
+  public function __isset($name) {
+    return isset($this->$name) ? TRUE : FALSE;
+  }
+
   /**
    * Determine whether this object is persistent and enabled. I. e. it is
    * defined either in code or in the database and it is enabled.
@@ -129,8 +136,8 @@ abstract class FeedsConfigurable {
   }
 
   /**
-   * Override magic method __get(). Make sure that $this->config goes
-   * through getConfig()
+   * Override magic method __get(). Make sure that $this->config goes through 
+   * getConfig().
    */
   public function __get($name) {
     if ($name == 'config') {
-- 
GitLab