Update account.class.php

This commit is contained in:
Frédéric FRANCE 2021-05-06 20:34:45 +02:00 committed by GitHub
parent 7b8d4c2656
commit 7897469963
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1693,8 +1693,7 @@ class Account extends CommonObject
{
$sql = "UPDATE ".MAIN_DB_PREFIX."bank_url SET url_id = ".((int) $dest_id)." WHERE url_id = ".((int) $origin_id)." AND type='company'";
if (!$db->query($sql))
{
if (!$db->query($sql)) {
//if ($ignoreerrors) return true; // TODO Not enough. If there is A-B on kept thirdarty and B-C on old one, we must get A-B-C after merge. Not A-B.
//$this->errors = $db->lasterror();
return false;