Skip to content

Commit f6e3b1d

Browse files
author
Stefan Gehrig
committed
fixes issue zetacomponents#10 in order to make tests pass again
1 parent 992692f commit f6e3b1d

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/interfaces/node_arithmetic_base.php

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
* to you under the Apache License, Version 2.0 (the
1010
* "License"); you may not use this file except in compliance
1111
* with the License. You may obtain a copy of the License at
12-
*
12+
*
1313
* http://www.apache.org/licenses/LICENSE-2.0
14-
*
14+
*
1515
* Unless required by applicable law or agreed to in writing,
1616
* software distributed under the License is distributed on an
1717
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -111,7 +111,11 @@ public function execute( ezcWorkflowExecution $execution )
111111
);
112112
}
113113

114-
if ( is_numeric( $this->configuration['operand'] ) )
114+
if ( !isset( $this->configuration['operand'] ) ) {
115+
$this->operand = 1;
116+
}
117+
118+
else if ( is_numeric( $this->configuration['operand'] ) )
115119
{
116120
$this->operand = $this->configuration['operand'];
117121
}

0 commit comments

Comments
 (0)