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
|
@@ 621-631 (lines=11) @@
|
| 618 |
|
} |
| 619 |
|
} |
| 620 |
|
|
| 621 |
|
if (!$error) { |
| 622 |
|
$sql = 'DELETE FROM ' . MAIN_DB_PREFIX . $this->table_element; |
| 623 |
|
$sql .= ' WHERE idBBC_vols=' . $this->idBBC_vols; |
| 624 |
|
|
| 625 |
|
$resql = $this->db->query($sql); |
| 626 |
|
if (!$resql) { |
| 627 |
|
$error++; |
| 628 |
|
$this->errors[] = 'Error ' . $this->db->lasterror(); |
| 629 |
|
dol_syslog(__METHOD__ . ' ' . join(',', $this->errors), LOG_ERR); |
| 630 |
|
} |
| 631 |
|
} |
| 632 |
|
|
| 633 |
|
// Commit or rollback |
| 634 |
|
if ($error) { |