LSformElement :: select_box : fix isValidValue() method in inherited context
authorBenjamin Renard <brenard@easter-eggs.com>
Tue, 27 Jun 2017 13:12:29 +0000 (15:12 +0200)
committerBenjamin Renard <brenard@easter-eggs.com>
Tue, 27 Jun 2017 13:12:29 +0000 (15:12 +0200)
public_html/includes/class/class.LSformElement_select.php

index ac06b06..fd2933f 100644 (file)
@@ -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 {