fopen likely doesn't return === false. It probably returns 0 or something
authorfidian <fidian@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 16 Nov 2001 21:05:21 +0000 (21:05 +0000)
committerfidian <fidian@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 16 Nov 2001 21:05:21 +0000 (21:05 +0000)
equivalent (==) false.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1768 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/gettext.php

index ba0c4624025fd07ceac8b6bb28ce234ad3fb91a8..7f8c59624b25be143b2d167fd826470ba40b7b03 100644 (file)
@@ -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;