Skip to content

Commit

Permalink
fixes issue zetacomponents#10 in order to make tests pass again
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Gehrig committed Jan 19, 2018
1 parent 992692f commit f6e3b1d
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/interfaces/node_arithmetic_base.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
Expand Down Expand Up @@ -111,7 +111,11 @@ public function execute( ezcWorkflowExecution $execution )
);
}

if ( is_numeric( $this->configuration['operand'] ) )
if ( !isset( $this->configuration['operand'] ) ) {
$this->operand = 1;
}

else if ( is_numeric( $this->configuration['operand'] ) )
{
$this->operand = $this->configuration['operand'];
}
Expand Down

0 comments on commit f6e3b1d

Please sign in to comment.