| @@ 231-235 (lines=5) @@ | ||
| 228 | $sql = sprintf($format, $this->db->prefix('adslight_pictures'), $cod_img, $this->db->quoteString($title), $now, $now, $this->db->quoteString($lid), $this->db->quoteString($uid_owner), |
|
| 229 | $this->db->quoteString($url), $cod_img); |
|
| 230 | } |
|
| 231 | if (false !== $force) { |
|
| 232 | $result = $this->db->queryF($sql); |
|
| 233 | } else { |
|
| 234 | $result = $this->db->query($sql); |
|
| 235 | } |
|
| 236 | if (!$result) { |
|
| 237 | return false; |
|
| 238 | } |
|
| @@ 264-268 (lines=5) @@ | ||
| 261 | return false; |
|
| 262 | } |
|
| 263 | $sql = sprintf('DELETE FROM %s WHERE cod_img = %u', $this->db->prefix('adslight_pictures'), $jlm_pictures->getVar('cod_img')); |
|
| 264 | if (false !== $force) { |
|
| 265 | $result = $this->db->queryF($sql); |
|
| 266 | } else { |
|
| 267 | $result = $this->db->query($sql); |
|
| 268 | } |
|
| 269 | if (!$result) { |
|
| 270 | return false; |
|
| 271 | } |
|