mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-18 06:23:48 +01:00
Fix PHP syntax errors
This commit is contained in:
parent
a338e0dfa0
commit
20dc70f34b
2 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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']);
|
||||
|
|
Loading…
Reference in a new issue