forked from mirrors/easyappointments
Validate $key argument with empty instead with is_null
This commit is contained in:
parent
31c324dd92
commit
b14341c328
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ function config($key, $default = NULL)
|
|||
/** @var EA_Controller $CI */
|
||||
$CI = &get_instance();
|
||||
|
||||
if (is_null($key))
|
||||
if (empty($key))
|
||||
{
|
||||
throw new InvalidArgumentException('The $key argument cannot be empty.');
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue