class/bbctypes.class.php 1 location
|
@@ 397-407 (lines=11) @@
|
| 394 |
|
} |
| 395 |
|
} |
| 396 |
|
|
| 397 |
|
if (!$error) { |
| 398 |
|
$sql = 'DELETE FROM ' . MAIN_DB_PREFIX . $this->table_element; |
| 399 |
|
$sql .= ' WHERE idType=' . $this->id; |
| 400 |
|
|
| 401 |
|
$resql = $this->db->query($sql); |
| 402 |
|
if (!$resql) { |
| 403 |
|
$error++; |
| 404 |
|
$this->errors[] = 'Error ' . $this->db->lasterror(); |
| 405 |
|
dol_syslog(__METHOD__ . ' ' . join(',', $this->errors), LOG_ERR); |
| 406 |
|
} |
| 407 |
|
} |
| 408 |
|
|
| 409 |
|
// Commit or rollback |
| 410 |
|
if ($error) { |
class/bbcvols.class.php 1 location
|
@@ 546-556 (lines=11) @@
|
| 543 |
|
} |
| 544 |
|
} |
| 545 |
|
|
| 546 |
|
if (!$error) { |
| 547 |
|
$sql = 'DELETE FROM ' . MAIN_DB_PREFIX . $this->table_element; |
| 548 |
|
$sql .= ' WHERE idBBC_vols=' . $this->idBBC_vols; |
| 549 |
|
|
| 550 |
|
$resql = $this->db->query($sql); |
| 551 |
|
if (!$resql) { |
| 552 |
|
$error++; |
| 553 |
|
$this->errors[] = 'Error ' . $this->db->lasterror(); |
| 554 |
|
dol_syslog(__METHOD__ . ' ' . join(',', $this->errors), LOG_ERR); |
| 555 |
|
} |
| 556 |
|
} |
| 557 |
|
|
| 558 |
|
// Commit or rollback |
| 559 |
|
if ($error) { |