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()) {
// 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);