浏览代码

fopen likely doesn't return === false. It probably returns 0 or something
equivalent (==) false.

Tyler Akins 24 年之前
父节点
当前提交
9a18eaf092
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      functions/gettext.php

+ 1 - 1
functions/gettext.php

@@ -59,7 +59,7 @@
          $gettext_php_domain . '.po';
       
       $file = @fopen($filename, 'r');
-      if ($file === false) {
+      if ($file == false) {
          // Uh-ho -- we can't load the file.  Just fake it.  :-)
 	 // This is also for English, which doesn't use translations
          $gettext_php_loaded = true;