Avoid array key not found warning

This commit is contained in:
nathan 2023-10-24 14:12:52 -06:00
parent b45b3c35df
commit f6e6b7dc38

View File

@ -550,7 +550,7 @@ class Storage extends Storage\Base
$extra_join_added = true;
}
$extra_columns = $this->db->get_table_definitions($this->app, $this->extra_table);
if(is_string($name) && $extra_columns['fd'][array_search($name, $this->db_cols)] ?? null)
if(is_string($name) && !empty($extra_columns['fd'][array_search($name, $this->db_cols)]))
{
$criteria[] = $this->db->expression($this->table_name,$this->table_name.'.',array(
array_search($name, $this->db_cols) => $val,