Fix: Notice: Undefined NEW_CASE at login page

This commit is contained in:
Enrique
2011-03-30 08:56:37 -04:00
parent c8ed796415
commit 0cc77cbc34

View File

@@ -4446,13 +4446,16 @@ class XmlForm_Field_Image extends XmlForm_Field
return $value; return $value;
} }
/** /**
* Returns if the current dynaform is new or reopened * Returns if the current dynaform is new or reopened
* @author Enrique Ponce de Leon <enrique@colosa.com> * @author Enrique Ponce de Leon <enrique@colosa.com>
* @package gulliver.system * @package gulliver.system
*/ */
function isNewDynaform($owner){ 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; return $sw;
} }