Fixing PIP update.
authorJeffrey Reichardt <jeffrey.reichardt@googlemail.com>
Sat, 21 Apr 2012 15:51:00 +0000 (18:51 +0300)
committerJeffrey Reichardt <jeffrey.reichardt@googlemail.com>
Sat, 21 Apr 2012 15:51:00 +0000 (18:51 +0300)
wcfsetup/install/files/lib/system/package/plugin/PIPPackageInstallationPlugin.class.php

index 9fff9c9273b1fa05627518698f9161d02ac753fa..37ddd418350a28348a9b10aa472378778d98afa7 100644 (file)
@@ -60,6 +60,18 @@ class PIPPackageInstallationPlugin extends AbstractXMLPackageInstallationPlugin
         * @see wcf\system\package\plugin\AbstractXMLPackageInstallationPlugin::findExistingItem()
         */
        protected function findExistingItem(array $data) {
-               return null;
+               $sql = "SELECT  *
+                       FROM    wcf".WCF_N."_".$this->tableName."
+                       WHERE   pluginName = ?
+                               AND packageID = ?";
+               $parameters = array(
+                       $data['pluginName'],
+                       $this->installation->getPackageID()
+               );
+               
+               return array(
+                       'sql' => $sql,
+                       'parameters' => $parameters
+               );
        }
 }