// Remove bad _SQL_USE_SLAVE_ uses + normalize Db->executeS(), Db->execute() and Db->numRows() names
This commit is contained in:
@@ -410,7 +410,7 @@ class MRCreateTickets implements IMondialRelayWSMethod
|
||||
*/
|
||||
private function _updateTable($params, $expeditionNum, $ticketURL, $trackingURL, $id_mr_selected)
|
||||
{
|
||||
Db::getInstance()->Execute('
|
||||
Db::getInstance()->execute('
|
||||
UPDATE `'._DB_PREFIX_.'mr_selected`
|
||||
SET `MR_poids` = \''.pSQL($params['Poids']).'\',
|
||||
`exp_number` = \''.pSQL($expeditionNum).'\',
|
||||
|
||||
@@ -166,7 +166,7 @@ class MRGetTickets implements IMondialRelayWSMethod
|
||||
\''.pSQL((string)$URLA4).'\',
|
||||
\''.pSQL((string)$URLA5).'\')';
|
||||
}
|
||||
Db::getInstance()->Execute($query);
|
||||
Db::getInstance()->execute($query);
|
||||
$success['id_mr_history'] = isset($row['id']) ? $row['id'] : Db::getInstance()->Insert_ID();
|
||||
}
|
||||
|
||||
|
||||
@@ -92,7 +92,7 @@ class MRManagement extends MondialRelay
|
||||
$query .= '"'.pSQL($value).'", ';
|
||||
$query = rtrim($query, ', ').')';
|
||||
}
|
||||
Db::getInstance()->Execute($query);
|
||||
Db::getInstance()->execute($query);
|
||||
}
|
||||
|
||||
public function uninstallDetail()
|
||||
@@ -143,7 +143,7 @@ class MRManagement extends MondialRelay
|
||||
$query = trim($query, ', ').')';
|
||||
|
||||
$success['deletedListId'] = $this->_params['historyIdList'];
|
||||
$totalDeleted = Db::getInstance()->Execute($query);
|
||||
$totalDeleted = Db::getInstance()->execute($query);
|
||||
if (count($success['deletedListId']) != $totalDeleted)
|
||||
{
|
||||
$error[] = $this->l('Some items can\'t be removed, please try to remove it again');
|
||||
|
||||
Reference in New Issue
Block a user