From: Matthias Schmidt Date: Sun, 9 Dec 2012 16:04:50 +0000 (+0100) Subject: Removes none-existing database table column from query X-Git-Tag: 2.0.0_Beta_1~616^2~4^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5ca299149677d9dd72960c2d8b2a3ced0768c2f8;p=GitHub%2FWoltLab%2FWCF.git Removes none-existing database table column from query --- diff --git a/files/lib/acp/form/LanguageExportForm.class.php b/files/lib/acp/form/LanguageExportForm.class.php index eb82b94402..bc33587a8c 100644 --- a/files/lib/acp/form/LanguageExportForm.class.php +++ b/files/lib/acp/form/LanguageExportForm.class.php @@ -144,8 +144,7 @@ class LanguageExportForm extends ACPForm { * Read available packages. */ protected function readPackages() { - $sql = "SELECT *, - CASE WHEN instanceName <> '' THEN instanceName ELSE packageName END AS packageName + $sql = "SELECT * FROM wcf".WCF_N."_package ORDER BY packageName"; $statement = WCF::getDB()->prepareStatement($sql);