From aacfe2d6e0295ec0d9aa4f19ffb202540ed70226 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Tue, 27 Jun 2017 15:12:29 +0200 Subject: [PATCH] LSformElement :: select_box : fix isValidValue() method in inherited context --- public_html/includes/class/class.LSformElement_select.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public_html/includes/class/class.LSformElement_select.php b/public_html/includes/class/class.LSformElement_select.php index ac06b062..fd2933f8 100644 --- a/public_html/includes/class/class.LSformElement_select.php +++ b/public_html/includes/class/class.LSformElement_select.php @@ -73,7 +73,7 @@ class LSformElement_select extends LSformElement { */ public function isValidValue($value,$possible_values=False) { if (!is_array($possible_values)) { - if (isset($this) && get_class($this) == __CLASS__ && is_array($this -> params['text_possible_values'])) { + if (isset($this) && is_a($this, __CLASS__) && is_array($this -> params['text_possible_values'])) { $possible_values=$this -> params['text_possible_values']; } else {