Fixe some SQL syntax errors
authorMarcel Werk <burntime@woltlab.com>
Mon, 26 Sep 2011 16:48:28 +0000 (18:48 +0200)
committerMarcel Werk <burntime@woltlab.com>
Mon, 26 Sep 2011 16:48:28 +0000 (18:48 +0200)
wcfsetup/install/files/lib/system/package/PackageArchive.class.php
wcfsetup/install/files/lib/system/package/PackageUninstallationNodeBuilder.class.php

index 1567c3f87bd72910a3b22558ced76888d1cff49c..a8f132aa677896033339ef1a64d3753200bb95ce 100644 (file)
@@ -809,7 +809,7 @@ class PackageArchive {
                        FROM            wcf".WCF_N."_package_exclusion package_exclusion
                        LEFT JOIN       wcf".WCF_N."_package package
                        ON              (package.packageID = package_exclusion.packageID)       
-                       WHERE           excludedPackage = ?'".$this->packageInfo['name']."'";
+                       WHERE           excludedPackage = ?";
                $statement = WCF::getDB()->prepareStatement($sql);
                $statement->execute(array($this->packageInfo['name']));
                while ($row = $statement->fetchArray()) {
index e8966519fe242573fdec894fe82d5e6ad1844ed5..2068697562757515d82560f6ad3f111e90fb697b 100644 (file)
@@ -36,7 +36,7 @@ class PackageUninstallationNodeBuilder extends PackageInstallationNodeBuilder {
                // fetch ordered pips
                $pips = array();
                $sql = "SELECT          pluginName, className,
-                                       CASE pluginName WHEN 'packageinstallationplugin' THEN 1 WHEN 'files' THEN 2 ELSE 0 END 'pluginOrder'
+                                       CASE pluginName WHEN 'packageinstallationplugin' THEN 1 WHEN 'files' THEN 2 ELSE 0 END AS pluginOrder
                        FROM            wcf".WCF_N."_package_installation_plugin
                        ORDER BY        pluginOrder, priority";
                $statement = WCF::getDB()->prepareStatement($sql);