fix array input has.
This commit is contained in:
@@ -40,6 +40,8 @@ class Input {
|
|||||||
*/
|
*/
|
||||||
public static function has($key)
|
public static function has($key)
|
||||||
{
|
{
|
||||||
|
if (is_array(static::get($key))) return true;
|
||||||
|
|
||||||
return trim((string) static::get($key)) !== '';
|
return trim((string) static::get($key)) !== '';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user