replace is_null()

This commit is contained in:
Sebastien Guibert 2011-03-10 11:59:44 +01:00
parent e717a048fc
commit 4b25a97dae
1 changed files with 2 additions and 2 deletions

View File

@ -62,7 +62,7 @@ class Multilang_Route extends Kohana_Route {
static public function get($name, $lang = NULL) static public function get($name, $lang = NULL)
{ {
// We use the current language if none given // We use the current language if none given
if(is_null($lang)) if($lang === NULL)
{ {
$lang = Request::$lang; $lang = Request::$lang;
} }
@ -76,7 +76,7 @@ class Multilang_Route extends Kohana_Route {
$name = Kohana::config('multilang.default').'.'.$name; $name = Kohana::config('multilang.default').'.'.$name;
} }
$route = parent::get($name); $route = parent::get($name);
if(!is_null($route)) if($route !== NULL)
{ {
$route->_lang = $lang; $route->_lang = $lang;
} }