Fix break misplaced error
authorBenjamin Renard <brenard@easter-eggs.com>
Wed, 26 Apr 2017 08:38:34 +0000 (10:38 +0200)
committerBenjamin Renard <brenard@easter-eggs.com>
Wed, 26 Apr 2017 08:38:34 +0000 (10:38 +0200)
public_html/includes/class/class.LSattr_html_select_list.php

index 7708689..afc6e01 100644 (file)
@@ -159,7 +159,7 @@ class LSattr_html_select_list extends LSattr_html{
 
     if ((!isset($conf['object_type'])) || ((!isset($conf['value_attribute'])) && (!isset($conf['values_attribute'])))) {
       LSerror :: addErrorCode('LSattr_html_select_list_01',$this -> name);
 
     if ((!isset($conf['object_type'])) || ((!isset($conf['value_attribute'])) && (!isset($conf['values_attribute'])))) {
       LSerror :: addErrorCode('LSattr_html_select_list_01',$this -> name);
-      break;
+      return;
     }
     if (!LSsession :: loadLSclass('LSsearch')) {
       return;
     }
     if (!LSsession :: loadLSclass('LSsearch')) {
       return;