zero is considered as empty value
This commit is contained in:
parent
758544af08
commit
867b757a70
1 changed files with 3 additions and 3 deletions
|
|
@ -82,7 +82,7 @@ class HttpInput
|
|||
// Check if number
|
||||
else if ($p_type=="number")
|
||||
{
|
||||
if (empty($this->array[$p_name]))
|
||||
if (trim($this->array[$p_name]) == "")
|
||||
{
|
||||
$this->array[$p_name]=$this->empty;
|
||||
}
|
||||
|
|
@ -97,7 +97,7 @@ class HttpInput
|
|||
// Check if date dd.mm.yyyy
|
||||
else if ($p_type=="date")
|
||||
{
|
||||
if (empty($this->array[$p_name]))
|
||||
if (trim($this->array[$p_name]) == "" )
|
||||
{
|
||||
$this->array[$p_name]=$this->empty;
|
||||
}
|
||||
|
|
@ -110,7 +110,7 @@ class HttpInput
|
|||
}
|
||||
else if ($p_type=="array")
|
||||
{
|
||||
if (empty($this->array[$p_name]))
|
||||
if (trim($this->array[$p_name]) == "" )
|
||||
{
|
||||
$this->array[$p_name]=$this->empty;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue