// Fix strict standard on paymentModule + fix stats SQL bug

This commit is contained in:
rMalie
2011-07-22 09:49:29 +00:00
parent 112b465f96
commit 8d3e36c904
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -476,7 +476,7 @@ class PayPal extends PaymentModule
}
public function validateOrder($id_cart, $id_order_state, $amountPaid, $paymentMethod = 'Unknown', $message = NULL, $extraVars = array(), $currency_special = NULL, $dont_touch_amount = false, $secure_key = false)
public function validateOrder($id_cart, $id_order_state, $amountPaid, $paymentMethod = 'Unknown', $message = NULL, $extraVars = array(), $currency_special = NULL, $dont_touch_amount = false, $secure_key = false, Shop $shop = null)
{
if (!$this->active)
return;
+2 -2
View File
@@ -280,10 +280,10 @@ class StatsForecast extends Module
.$this->sqlShopRestriction(false, 'c');
$visitors = Db::getInstance()->getValue($sql);
$sql = 'SELECT COUNT(DISTINCT id_customer)
$sql = 'SELECT COUNT(DISTINCT g.id_customer)
FROM '._DB_PREFIX_.'connections c
INNER JOIN '._DB_PREFIX_.'guest g ON c.id_guest = g.id_guest
WHERE c.id_customer != 0
WHERE g.id_customer != 0
AND c.date_add BETWEEN '.ModuleGraph::getDateBetween()
.$this->sqlShopRestriction(false, 'c');
$customers = Db::getInstance()->getValue($sql);