|
@@ -202,6 +202,7 @@ class Validate
|
|
public function required($str)
|
|
public function required($str)
|
|
{
|
|
{
|
|
if (is_array($str)) return !empty($str);
|
|
if (is_array($str)) return !empty($str);
|
|
|
|
+ if ($this->number($str)) return true;
|
|
return trim($str) != "";
|
|
return trim($str) != "";
|
|
}
|
|
}
|
|
|
|
|