// Remove bad _SQL_USE_SLAVE_ uses + normalize Db->executeS(), Db->execute() and Db->numRows() names
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@9178 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -33,7 +33,7 @@ class AdminSearch extends AdminTab
|
||||
if (!ip2long(trim($query)))
|
||||
return;
|
||||
|
||||
$this->_list['customers'] = Db::getInstance(_PS_USE_SQL_SLAVE_)->ExecuteS('
|
||||
$this->_list['customers'] = Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS('
|
||||
SELECT DISTINCT c.*
|
||||
FROM `'._DB_PREFIX_.'customer` c
|
||||
LEFT JOIN `'._DB_PREFIX_.'guest` g ON g.id_customer = c.id_customer
|
||||
@@ -84,7 +84,7 @@ class AdminSearch extends AdminTab
|
||||
{
|
||||
global $_LANGADM;
|
||||
$tabs = array();
|
||||
$result = Db::getInstance()->ExecuteS('SELECT class_name, name FROM '._DB_PREFIX_.'tab t INNER JOIN '._DB_PREFIX_.'tab_lang tl ON t.id_tab = tl.id_tab AND tl.id_lang = '.(int)$this->context->language->id);
|
||||
$result = Db::getInstance()->executeS('SELECT class_name, name FROM '._DB_PREFIX_.'tab t INNER JOIN '._DB_PREFIX_.'tab_lang tl ON t.id_tab = tl.id_tab AND tl.id_lang = '.(int)$this->context->language->id);
|
||||
foreach ($result as $row)
|
||||
$tabs[$row['class_name']] = $row['name'];
|
||||
foreach (AdminTab::$tabParenting as $key => $value)
|
||||
|
||||
Reference in New Issue
Block a user