From 0cc77cbc3465e25383ffbc90555bf16c146dbfa9 Mon Sep 17 00:00:00 2001 From: Enrique Date: Wed, 30 Mar 2011 08:56:37 -0400 Subject: [PATCH] Fix: Notice: Undefined NEW_CASE at login page --- gulliver/system/class.xmlform.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/gulliver/system/class.xmlform.php b/gulliver/system/class.xmlform.php index 2293eb731..4744cabf0 100644 --- a/gulliver/system/class.xmlform.php +++ b/gulliver/system/class.xmlform.php @@ -4446,13 +4446,16 @@ class XmlForm_Field_Image extends XmlForm_Field return $value; } - /** * Returns if the current dynaform is new or reopened * @author Enrique Ponce de Leon * @package gulliver.system */ function isNewDynaform($owner){ - $sw = ($_SESSION['NEW_CASE']=='New')? '1' : '0'; + if (isset($_SESSION['NEW_CASE'])){ + $sw = ($_SESSION['NEW_CASE']=='New')? '1' : '0'; + }else{ + $sw = '0'; + } return $sw; }