Мелкие правки

This commit is contained in:
origami11 2017-06-22 16:08:58 +03:00
parent ce7d909ea8
commit 7dad5d30ac
3 changed files with 4 additions and 3 deletions

View file

@ -217,9 +217,9 @@ class OptionFactory {
} else if (isset($input['options.db'])) {
list($table, $keyvalue) = explode(":", $input['options.db']);
list($key, $value) = explode(",", $keyvalue);
try{
try {
$query_result = $this->db->executeQuery("SELECT * FROM $table");
}catch(Exception $ex){
} catch(Exception $ex) {
$query_result = [];
}
$field->options = $this->optionsDB($key, $value, $query_result);