From 08a843fc20fd256acef046182a4e3b96f57fba95 Mon Sep 17 00:00:00 2001 From: ARCANEDEV Date: Mon, 21 Sep 2015 12:13:38 +0100 Subject: [PATCH] Fixing the check --- src/Localization.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Localization.php b/src/Localization.php index a5a05ce..22925b5 100644 --- a/src/Localization.php +++ b/src/Localization.php @@ -307,7 +307,7 @@ public function getNonLocalizedURL($url = null) */ public function getLocalizedURL($locale = null, $url = null, $attributes = []) { - if ($locale === null) { + if (is_null($locale)) { $locale = $this->getCurrentLocale(); }