Fix PHP syntax errors

This commit is contained in:
Benjamin Renard 2019-03-12 13:18:31 +01:00
parent a338e0dfa0
commit 20dc70f34b
2 changed files with 2 additions and 2 deletions

View file

@ -165,7 +165,7 @@ class LSformElement_valueWithUnit extends LSformElement {
if (isset($_POST[$this -> name.'_unitFact'][$key]) && ($_POST[$this -> name.'_unitFact'][$key]!=1)) {
$f = $_POST[$this -> name.'_unitFact'][$key];
}
if ($this -> getParam('html_options.store_integer'])) {
if ($this -> getParam('html_options.store_integer')) {
if ($this -> getParam('html_options.round_down')) {
$return[$this -> name][$key] = floor($val*$f);
}

View file

@ -69,7 +69,7 @@ class LSformRule_compare extends LSformRule {
*/
public static function validate ($values,$options=array(),$formElement) {
if (!isset($options['params']['operator'])) {
LSerror :: addErrorCode('LSformRule_01',array('type' => 'compare', 'param' => 'operator');
LSerror :: addErrorCode('LSformRule_01',array('type' => 'compare', 'param' => 'operator'));
return;
}
$operator = self :: _findOperator($options['params']['operator']);