Error: Call to a member function next() on array (в optionsDB)

This commit is contained in:
Anatoly 2018-02-06 15:21:57 +03:00
parent 0c4c6fd86e
commit 2d26dbae38

View file

@ -32,10 +32,10 @@ class Form_OptionFactory {
list($key, $value) = explode(",", $keyvalue);
try {
$query_result = $this->db->executeQuery("SELECT * FROM $table");
$field->options = $this->optionsDB($key, $value, $query_result);
} catch(Exception $ex) {
$query_result = [];
$field->options = [];
}
$field->options = $this->optionsDB($key, $value, $query_result);
} elseif (isset($input['options.pair'])) {
$field->options = $this->optionsPair($input['options.pair']);
} elseif (isset($input['options.model'])) {