Avoided memory issue
authorMarcel Werk <burntime@woltlab.com>
Mon, 28 Oct 2019 16:04:11 +0000 (17:04 +0100)
committerMarcel Werk <burntime@woltlab.com>
Mon, 28 Oct 2019 16:04:11 +0000 (17:04 +0100)
wcfsetup/install/files/lib/acp/page/IndexPage.class.php

index f696acf23b6a480212ded50e8a8e66bb67c4f256..daa34c18964b7e9118f28559e126566a92869b2e 100755 (executable)
@@ -119,7 +119,7 @@ class IndexPage extends AbstractPage {
                        ENABLE_DEBUG_MODE
                        && ENABLE_DEVELOPER_TOOLS
                        && file_exists(WCF_DIR . 'log/missingLanguageItems.txt')
-                       && mb_strlen(StringUtil::trim(file_get_contents(WCF_DIR . 'log/missingLanguageItems.txt'))) > 0
+                       && filesize(WCF_DIR . 'log/missingLanguageItems.txt') > 0
                ) {
                        $missingLanguageItemsMTime = filemtime(WCF_DIR . 'log/missingLanguageItems.txt');
                }