| @@ 198-206 (lines=9) @@ | ||
| 195 | return false; |
|
| 196 | } |
|
| 197 | ||
| 198 | if (isset($tpl_source) && $tpl_source != '') { |
|
| 199 | $values = array( |
|
| 200 | // 'tpl_id' => $tpl_id, |
|
| 201 | 'tpl_source' => $tpl_source, |
|
| 202 | ); |
|
| 203 | if ($this->db2->updatePrefix('system_tplsource', $values, array('tpl_id' => $tpl_id))) { |
|
| 204 | return false; |
|
| 205 | } |
|
| 206 | } |
|
| 207 | } |
|
| 208 | ||
| 209 | return true; |
|
| @@ 259-268 (lines=10) @@ | ||
| 256 | return false; |
|
| 257 | } |
|
| 258 | ||
| 259 | if (isset($tpl_source) && $tpl_source != '') { |
|
| 260 | $tpl_id = 0; |
|
| 261 | $values = array( |
|
| 262 | // 'tpl_id' => $tpl_id, |
|
| 263 | 'tpl_source' => $tpl_source, |
|
| 264 | ); |
|
| 265 | if ($this->db2->updatePrefix('system_tplsource', $values, array('tpl_id' => $tpl_id))) { |
|
| 266 | return false; |
|
| 267 | } |
|
| 268 | } |
|
| 269 | ||
| 270 | return true; |
|
| 271 | } else { |
|