Author: Sebastian Bergmann
Date: 2007-05-04 11:57:38 +0200 (Fri, 04 May 2007)
New Revision: 5040

Log:
- Be more strict.
Modified:
   trunk/Workflow/src/nodes/variables/input.php

Modified: trunk/Workflow/src/nodes/variables/input.php
===================================================================
--- trunk/Workflow/src/nodes/variables/input.php        2007-05-04 09:41:20 UTC 
(rev 5039)
+++ trunk/Workflow/src/nodes/variables/input.php        2007-05-04 09:57:38 UTC 
(rev 5040)
@@ -35,6 +35,11 @@
         {
             if ( is_int( $key ) )
             {
+                if ( !is_string( $value ) )
+                {
+                    throw new InvalidArgumentException;
+                }
+
                 $variable  = $value;
                 $condition = new ezcWorkflowConditionIsAnything;
             }

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

Reply via email to