Skip to content

Commit

Permalink
[-] CORE : Fix multishop issue #PSCSX-4197
Browse files Browse the repository at this point in the history
  • Loading branch information
tchauviere committed Jan 5, 2015
1 parent d4926db commit be45b4a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion classes/CustomerThread.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,8 @@ public static function getTotalCustomerThreads($where = null)
return (int)Db::getInstance()->getValue('
SELECT COUNT(*)
FROM '._DB_PREFIX_.'customer_thread
');
WHERE 1 '.Shop::addSqlRestriction()
);
else
return (int)Db::getInstance()->getValue('
SELECT COUNT(*)
Expand Down
2 changes: 1 addition & 1 deletion controllers/admin/AdminStatsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ public static function getAverageCustomerAge()

public static function getPendingMessages()
{
return CustomerThread::getTotalCustomerThreads('status LIKE "%pending%" OR status = "open"');
return CustomerThread::getTotalCustomerThreads('status LIKE "%pending%" OR status = "open"'.Shop::addSqlRestriction());
}

public static function getAverageMessageResponseTime($date_from, $date_to)
Expand Down

0 comments on commit be45b4a

Please sign in to comment.