diff --git a/libraries/cms/menu/item.php b/libraries/cms/menu/item.php index 4d348ee8a9915..039f20d62bed6 100644 --- a/libraries/cms/menu/item.php +++ b/libraries/cms/menu/item.php @@ -246,6 +246,26 @@ public function __set($name, $value) $this->set($name, $value); } + /** + * Method check if a certain otherwise inaccessible properties of the form field object is set. + * + * @param string $name The property name to check. + * + * @return boolean + * + * @since __DEPLOY_VERSION__ + * @deprecated 4.0 Deprecated without replacement + */ + public function __isset($name) + { + if ($name === 'params') + { + return !($this->params instanceof Registry); + } + + return $this->get($name) !== null; + } + /** * Returns the menu item parameters *