mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-10 04:24:14 +09:00
Disallow overwriting zero or null value with extra var
This commit is contained in:
parent
bf6dca0f7d
commit
6b209f64da
1 changed files with 8 additions and 2 deletions
|
|
@ -367,8 +367,14 @@ class memberModel extends member
|
||||||
{
|
{
|
||||||
foreach($extra_vars as $key => $val)
|
foreach($extra_vars as $key => $val)
|
||||||
{
|
{
|
||||||
if(!is_array($val) && !is_object($val) && strpos($val, '|@|') !== FALSE) $val = explode('|@|', $val);
|
if(!is_array($val) && !is_object($val) && strpos($val, '|@|') !== FALSE)
|
||||||
if(!$info->{$key}) $info->{$key} = $val;
|
{
|
||||||
|
$val = explode('|@|', $val);
|
||||||
|
}
|
||||||
|
if(!isset($info->{$key}))
|
||||||
|
{
|
||||||
|
$info->{$key} = $val;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue