From 89920ad8fecd952d82660125734c17ee9e343ba6 Mon Sep 17 00:00:00 2001
From: Reinhold Kainhofer <reinhold@kainhofer.com>
Date: Thu, 8 Jan 2015 14:49:15 +0100
Subject: [PATCH] Fix php warnings

---
 plugins/awocoupon/awocoupon.script.php       | 2 +-
 plugins/regexp/regexp.script.php             | 2 +-
 plugins/template/YOUR_PLUGIN_NAME.script.php | 2 +-
 rules_shipping.script.php                    | 2 +-
 rules_shipping_advanced.script.php           | 2 +-
 rules_shipping_base.php                      | 2 --
 6 files changed, 5 insertions(+), 7 deletions(-)

diff --git a/plugins/awocoupon/awocoupon.script.php b/plugins/awocoupon/awocoupon.script.php
index 24c01a9..5333791 100644
--- a/plugins/awocoupon/awocoupon.script.php
+++ b/plugins/awocoupon/awocoupon.script.php
@@ -53,7 +53,7 @@ class plgVmShipmentRulesAwoCouponInstallerScript
     public function install(JAdapterInstance $adapter)
     {
         // enabling plugin upon installation
-        $db =& JFactory::getDBO();
+        $db = JFactory::getDBO();
         $db->setQuery('update #__extensions set enabled = 1 where type = "plugin" and element = "'.$pluginname.'" and folder = "'.$plugintype.'"');
         $db->query();
         
diff --git a/plugins/regexp/regexp.script.php b/plugins/regexp/regexp.script.php
index 843e90e..cec084a 100644
--- a/plugins/regexp/regexp.script.php
+++ b/plugins/regexp/regexp.script.php
@@ -49,7 +49,7 @@ class plgVmShipmentRulesRegexpInstallerScript
     public function install(JAdapterInstance $adapter)
     {
         // enabling plugin upon installation
-        $db =& JFactory::getDBO();
+        $db = JFactory::getDBO();
         $db->setQuery('update #__extensions set enabled = 1 where type = "plugin" and element = "regexp" and folder = "vmshipmentrules"');
         $db->query();
         
diff --git a/plugins/template/YOUR_PLUGIN_NAME.script.php b/plugins/template/YOUR_PLUGIN_NAME.script.php
index 890789d..1764fdd 100644
--- a/plugins/template/YOUR_PLUGIN_NAME.script.php
+++ b/plugins/template/YOUR_PLUGIN_NAME.script.php
@@ -49,7 +49,7 @@ class plgVmShipmentRulesYOUR_PLUGIN_NAMEInstallerScript
     public function install(JAdapterInstance $adapter)
     {
         // enabling plugin upon installation
-        $db =& JFactory::getDBO();
+        $db = JFactory::getDBO();
         $db->setQuery('update #__extensions set enabled = 1 where type = "plugin" and element = "YOUR_PLUGIN_NAME" and folder = "vmshipmentrules"');
         $db->query();
         
diff --git a/rules_shipping.script.php b/rules_shipping.script.php
index d19e471..8fa5a53 100644
--- a/rules_shipping.script.php
+++ b/rules_shipping.script.php
@@ -46,7 +46,7 @@ class plgVmShipmentRules_ShippingInstallerScript
     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 = "rules_shipping" and folder = "vmshipment"');
         $db->query();
         
diff --git a/rules_shipping_advanced.script.php b/rules_shipping_advanced.script.php
index 9148256..5631327 100644
--- a/rules_shipping_advanced.script.php
+++ b/rules_shipping_advanced.script.php
@@ -46,7 +46,7 @@ class plgVmShipmentRules_Shipping_AdvancedInstallerScript
     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 = "rules_shipping_advanced" and folder = "vmshipment"');
         $db->query();
         
diff --git a/rules_shipping_base.php b/rules_shipping_base.php
index 0c46df6..00cbca5 100644
--- a/rules_shipping_base.php
+++ b/rules_shipping_base.php
@@ -174,8 +174,6 @@ class plgVmShipmentRules_Shipping_Base extends vmPSPlugin {
 		$values['shipment_name'] = $this->renderPluginName ($method);
 		$values['rule_name'] = $method->rule_name;
 // 		$values['order_weight'] = $this->getOrderWeight ($cart, $method->weight_unit);
-// 		$values['order_articles'] = $this->getOrderArticles ($cart);
-// 		$values['order_products'] = $this->getOrderProducts ($cart);
 		$values['shipment_weight_unit'] = $method->weight_unit;
 		$values['shipment_cost'] = $method->cost;
 		$values['tax_id'] = $method->tax_id;
-- 
GitLab