Don't use is_null
This commit is contained in:
+1
-1
@@ -40,7 +40,7 @@ if (!function_exists('config')) {
|
|||||||
*/
|
*/
|
||||||
function config($key = null, $default = null)
|
function config($key = null, $default = null)
|
||||||
{
|
{
|
||||||
if (is_null($key)) {
|
if ($key === null) {
|
||||||
return Config::getItems();
|
return Config::getItems();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user