From d104f8b43f70df55915a8b8d91a19952360080ba Mon Sep 17 00:00:00 2001 From: Andrey Andreev Date: Fri, 21 Feb 2014 19:05:35 +0200 Subject: More CI_Lang tests --- system/core/Lang.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'system/core') diff --git a/system/core/Lang.php b/system/core/Lang.php index 94342133a..ae0a4d642 100644 --- a/system/core/Lang.php +++ b/system/core/Lang.php @@ -168,7 +168,7 @@ class CI_Lang { */ public function line($line, $log_errors = TRUE) { - $value = ($line === '' OR ! isset($this->language[$line])) ? FALSE : $this->language[$line]; + $value = isset($this->language[$line]) ? $this->language[$line] : FALSE; // Because killer robots like unicorns! if ($value === FALSE && $log_errors === TRUE) -- cgit v1.2.3-24-g4f1b