Data_SQL if column doesn't exist
This commit is contained in:
parent
f93c2cbee0
commit
4112b1a14b
1 changed files with 2 additions and 2 deletions
|
|
@ -254,7 +254,7 @@ abstract class Data_SQL
|
|||
$this->$cols=$p_value;
|
||||
return $this;
|
||||
}
|
||||
if (array_key_exists($cols, $this->a_virtual_col))
|
||||
if ( ! empty ($this->a_virtual_col) && array_key_exists($cols, $this->a_virtual_col))
|
||||
{
|
||||
$this->$cols=$p_value;
|
||||
return $this;
|
||||
|
|
@ -266,7 +266,7 @@ abstract class Data_SQL
|
|||
if (array_key_exists($cols, $this->type)) {
|
||||
return $this->$cols;
|
||||
}
|
||||
if (array_key_exists($cols, $this->a_virtual_col))
|
||||
if (! empty ($this->a_virtual_col) && array_key_exists($cols, $this->a_virtual_col))
|
||||
{
|
||||
return $this->$cols;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue