| @@ 140-144 (lines=5) @@ | ||
| 137 | $sql = sprintf($format, $this->db->prefix('myiframe'), $this->db->quoteString($frame_description), $this->db->quoteString($frame_width), $this->db->quoteString($frame_height), $frame_align, $frame_frameborder, $frame_marginwidth, $frame_marginheight, $frame_scrolling, $frame_hits, |
|
| 138 | $this->db->quoteString($frame_url), $frame_frameid); |
|
| 139 | } |
|
| 140 | if (false !== $force) { |
|
| 141 | $result = $this->db->queryF($sql); |
|
| 142 | } else { |
|
| 143 | $result = $this->db->query($sql); |
|
| 144 | } |
|
| 145 | if (!$result) { |
|
| 146 | return false; |
|
| 147 | } |
|
| @@ 167-171 (lines=5) @@ | ||
| 164 | return false; |
|
| 165 | } |
|
| 166 | $sql = sprintf('DELETE FROM %s WHERE frame_frameid = %u', $this->db->prefix('myiframe'), $object->getVar('frame_frameid')); |
|
| 167 | if (false !== $force) { |
|
| 168 | $result = $this->db->queryF($sql); |
|
| 169 | } else { |
|
| 170 | $result = $this->db->query($sql); |
|
| 171 | } |
|
| 172 | if (!$result) { |
|
| 173 | return false; |
|
| 174 | } |
|