From b87b37a4219afad55990f6c44af0d93f632771ed Mon Sep 17 00:00:00 2001
From: Reinhold Kainhofer <reinhold@kainhofer.com>
Date: Thu, 8 Jan 2015 02:41:32 +0100
Subject: [PATCH] Fix VM3 and php warnings

---
 buyer_assign_group.php        | 4 ++--
 buyer_assign_group.script.php | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/buyer_assign_group.php b/buyer_assign_group.php
index 6a75389..5b9752c 100644
--- a/buyer_assign_group.php
+++ b/buyer_assign_group.php
@@ -62,8 +62,8 @@ class plgVmCustomBuyer_Assign_Group extends vmCustomPlugin {
 	 * We must reimplement this triggers for joomla 1.7
 	 * vmplugin triggers note by Max Milbers
 	 */
-	public function plgVmOnStoreInstallPluginTable($psType) {
-		return $this->onStoreInstallPluginTable($psType);
+	public function plgVmOnStoreInstallPluginTable($psType, $name) {
+		return $this->onStoreInstallPluginTable($psType, $name);
 	}
 
 	// VM2 Compat:
diff --git a/buyer_assign_group.script.php b/buyer_assign_group.script.php
index 75747bc..b781996 100644
--- a/buyer_assign_group.script.php
+++ b/buyer_assign_group.script.php
@@ -46,7 +46,7 @@ class plgVmCustomBuyer_Assign_GroupInstallerScript
     public function install(JAdapterInstance $adapter)
     {
         // enabling plugin
-        $db =& JFactory::getDBO();
+        $db = JFactory::getDBO();
         $db->setQuery('update #__extensions set enabled = 1 where type = "plugin" and element = "buyer_assign_group" and folder = "vmcustom"');
         $db->query();
         
-- 
GitLab