From 20dc70f34be838727b5894c44a995eeb04bbe461 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Tue, 12 Mar 2019 13:18:31 +0100 Subject: [PATCH] Fix PHP syntax errors --- .../includes/class/class.LSformElement_valueWithUnit.php | 2 +- public_html/includes/class/class.LSformRule_compare.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/public_html/includes/class/class.LSformElement_valueWithUnit.php b/public_html/includes/class/class.LSformElement_valueWithUnit.php index 83cfa03f..cd08603a 100644 --- a/public_html/includes/class/class.LSformElement_valueWithUnit.php +++ b/public_html/includes/class/class.LSformElement_valueWithUnit.php @@ -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); } diff --git a/public_html/includes/class/class.LSformRule_compare.php b/public_html/includes/class/class.LSformRule_compare.php index d932e9be..5942743f 100644 --- a/public_html/includes/class/class.LSformRule_compare.php +++ b/public_html/includes/class/class.LSformRule_compare.php @@ -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']);