I've been seeing this message when trying to unset a varaible that doesn't
exist:
*Notice*: Undefined variable: unsetVariable in *
/.../eZComponents/Workflow/src/interfaces/execution.php* on line *950*
Looks like it's returning the boolean unsetVariable that hasn't been set.
The problem seems to go away if I add one line to unsetVariable.
/**
* Unsets a variable.
*
* @param string $variableName
* @return true, when the variable has been unset, false otherwise
* @ignore
*/
public function unsetVariable( $variableName )
{
$unsetVariable = false; //
<----------------------------------- added this
if ( array_key_exists( $variableName, $this->variables ) )
{
$unsetVariable = true;
foreach ( $this->plugins as $plugin )
{
$unsetVariable = $plugin->beforeVariableUnset( $this,
$variableName );
if ( !$unsetVariable )
{
break;
}
}
if ( $unsetVariable )
{
unset( $this->variables[$variableName] );
foreach ( $this->plugins as $plugin )
{
$plugin->afterVariableUnset( $this, $variableName );
}
}
}
return $unsetVariable;
}
--
[EMAIL PROTECTED]
--
Components mailing list
[email protected]
http://lists.ez.no/mailman/listinfo/components