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
|
@@ 321-325 (lines=5) @@
|
318 |
|
|
319 |
|
|
320 |
|
$sql .= ' FROM ' . MAIN_DB_PREFIX . $this->table_element . ' as t'; |
321 |
|
if (null !== $ref) { |
322 |
|
$sql .= ' WHERE t.ref = ' . '\'' . $ref . '\''; |
323 |
|
} else { |
324 |
|
$sql .= ' WHERE t.idBBC_vols = ' . $id; |
325 |
|
} |
326 |
|
|
327 |
|
$resql = $this->db->query($sql); |
328 |
|
if ($resql) { |