// Remove bad _SQL_USE_SLAVE_ uses + normalize Db->executeS(), Db->execute() and Db->numRows() names

This commit is contained in:
rMalie committed 2011-10-10 12:18:56 +00:00
1 parent 149c814a45
commit 9510337b1d
280 files changed
+1971 -1966

No files matched your search

+2 -2
View File
@@ -147,7 +147,7 @@ class Newsletter extends Module
AND a.`id_country` = '.(int)Tools::getValue('COUNTRY').') >= 1');
$rq = Db::getInstance(_PS_USE_SQL_SLAVE_)->ExecuteS($dbquery->build());
$rq = Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS($dbquery->build());
$header = array('id_customer', 'lastname', 'firstname', 'email', 'ip_address', 'newsletter_date_add');
$result = (is_array($rq) ? array_merge(array($header), $rq) : $header);
@@ -156,7 +156,7 @@ class Newsletter extends Module
private function _getBlockNewsletter()
{
$rq = Db::getInstance(_PS_USE_SQL_SLAVE_)->ExecuteS('
$rq = Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS('
SELECT `id`, `email`, `newsletter_date_add`, `ip_registration_newsletter`
FROM `'._DB_PREFIX_.'newsletter`
WHERE `active` = 1');