Author: sb
Date: Wed Jul  4 11:48:56 2007
New Revision: 5684

Log:
- Fix issue #11067: Correctly handle null values in getVariable() and
  unsetVariable().

Modified:
    trunk/Workflow/ChangeLog
    trunk/Workflow/src/interfaces/execution.php

Modified: trunk/Workflow/ChangeLog
==============================================================================
--- trunk/Workflow/ChangeLog [iso-8859-1] (original)
+++ trunk/Workflow/ChangeLog [iso-8859-1] Wed Jul  4 11:48:56 2007
@@ -1,3 +1,7 @@
+- Fixed issue #11067: $execution->getVariable() throws an exeception if value 
of
+  variable is null.
+
+
 1.0 - Monday 02 July 2007
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 

Modified: trunk/Workflow/src/interfaces/execution.php
==============================================================================
--- trunk/Workflow/src/interfaces/execution.php [iso-8859-1] (original)
+++ trunk/Workflow/src/interfaces/execution.php [iso-8859-1] Wed Jul  4 
11:48:56 2007
@@ -777,7 +777,7 @@
      */
     public function getVariable( $variableName )
     {
-        if ( isset( $this->variables[$variableName] ) )
+        if ( array_key_exists( $variableName, $this->variables ) )
         {
             return $this->variables[$variableName];
         }
@@ -852,7 +852,7 @@
      */
     public function unsetVariable( $variableName )
     {
-        if ( isset( $this->variables[$variableName] ) )
+        if ( array_key_exists( $variableName, $this->variables ) )
         {
             unset( $this->variables[$variableName] );
 


-- 
svn-components mailing list
[email protected]
http://lists.ez.no/mailman/listinfo/svn-components

Reply via email to