| @@ 304-308 (lines=5) @@ | ||
| 301 | } else { |
|
| 302 | $post_activeyn = 0; |
|
| 303 | } |
|
| 304 | if (isset($_POST['descr'])) { |
|
| 305 | $post_descr = $myts->makeTboxData4Save($_POST['descr']); |
|
| 306 | } else { |
|
| 307 | $post_descr = ''; |
|
| 308 | } |
|
| 309 | ||
| 310 | $gen_offerid = $xoopsDB->genId($xoopsDB->prefix($xoopsModule->getVar('dirname', 'n') . '_subscr_offers') . '_offerid_seq'); |
|
| 311 | $sql = sprintf("INSERT INTO %s (offerid, title, typeid, duration, COUNT, price, activeyn, currency, descr) VALUES (%u, '%s', %u, %u, %u, '%s', %u, '%s', '%s')", $xoopsDB->prefix($xoopsModule->getVar('dirname', 'n') . '_subscr_offers'), $gen_offerid, $post_title, $post_typeid, |
|
| @@ 335-339 (lines=5) @@ | ||
| 332 | } else { |
|
| 333 | $post_activeyn = 0; |
|
| 334 | } |
|
| 335 | if (isset($_POST['descr'])) { |
|
| 336 | $post_descr = $myts->makeTboxData4Save($_POST['descr']); |
|
| 337 | } else { |
|
| 338 | $post_descr = ''; |
|
| 339 | } |
|
| 340 | ||
| 341 | $gen_offerid = $xoopsDB->genId($xoopsDB->prefix($xoopsModule->getVar('dirname', 'n') . '_subscr_offers') . '_offerid_seq'); |
|
| 342 | $sql = 'UPDATE ' |
|