Error: Call to a member function next() on array (в optionsDB)
This commit is contained in:
parent
0c4c6fd86e
commit
2d26dbae38
1 changed files with 2 additions and 2 deletions
|
|
@ -32,10 +32,10 @@ class Form_OptionFactory {
|
|||
list($key, $value) = explode(",", $keyvalue);
|
||||
try {
|
||||
$query_result = $this->db->executeQuery("SELECT * FROM $table");
|
||||
} catch(Exception $ex) {
|
||||
$query_result = [];
|
||||
}
|
||||
$field->options = $this->optionsDB($key, $value, $query_result);
|
||||
} catch(Exception $ex) {
|
||||
$field->options = [];
|
||||
}
|
||||
} elseif (isset($input['options.pair'])) {
|
||||
$field->options = $this->optionsPair($input['options.pair']);
|
||||
} elseif (isset($input['options.model'])) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue