class/bbctypes.class.php 1 location
|
@@ 177-181 (lines=5) @@
|
| 174 |
|
|
| 175 |
|
|
| 176 |
|
$sql .= ' FROM ' . MAIN_DB_PREFIX . $this->table_element . ' as t'; |
| 177 |
|
if (null !== $ref) { |
| 178 |
|
$sql .= ' WHERE t.ref = ' . '\'' . $ref . '\''; |
| 179 |
|
} else { |
| 180 |
|
$sql .= ' WHERE t.idType = ' . $id; |
| 181 |
|
} |
| 182 |
|
|
| 183 |
|
$resql = $this->db->query($sql); |
| 184 |
|
if ($resql) { |
class/bbcvols.class.php 1 location
|
@@ 412-416 (lines=5) @@
|
| 409 |
|
|
| 410 |
|
|
| 411 |
|
$sql .= ' FROM ' . MAIN_DB_PREFIX . $this->table_element . ' as t'; |
| 412 |
|
if (null !== $ref) { |
| 413 |
|
$sql .= ' WHERE t.ref = ' . '\'' . $ref . '\''; |
| 414 |
|
} else { |
| 415 |
|
$sql .= ' WHERE t.idBBC_vols = ' . $id; |
| 416 |
|
} |
| 417 |
|
|
| 418 |
|
$resql = $this->db->query($sql); |
| 419 |
|
if ($resql) { |