Browse Source

updated lang::has method.

Taylor Otwell 12 years ago
parent
commit
47b6492a7e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      laravel/lang.php

+ 1 - 1
laravel/lang.php

@@ -89,7 +89,7 @@ class Lang {
 	 */
 	public static function has($key, $language = null)
 	{
-		return ! is_null(static::line($key, array(), $language)->get());
+		return static::line($key, array(), $language)->get() !== $key;
 	}
 
 	/**