|
@@ 292-298 (lines=7) @@
|
| 289 |
|
$pollObject->setVar('weight', Request::getInt('weight', 0, 'POST')); |
| 290 |
|
$pollObject->setVar('multiple', Request::getInt('multiple', 0, 'POST')); |
| 291 |
|
$pollObject->setVar('user_id', Request::getInt('user_id', 0, 'POST')); |
| 292 |
|
if (Request::getInt('notify', 0, 'POST') && $end_time > time()) { |
| 293 |
|
// if notify, set mail status to "not mailed" |
| 294 |
|
$pollObject->setVar('mail_status', POLL_NOTMAILED); |
| 295 |
|
} else { |
| 296 |
|
// if not notify, set mail status to already "mailed" |
| 297 |
|
$pollObject->setVar('mail_status', POLL_MAILED); |
| 298 |
|
} |
| 299 |
|
$new_poll_id = $pollObject->store(); |
| 300 |
|
if (empty($new_poll_id)) { |
| 301 |
|
xoops_error($pollObject->getHtmlErrors); |
|
@@ 450-456 (lines=7) @@
|
| 447 |
|
$pollObject->setVar('weight', Request::getInt('weight', 0, 'POST')); |
| 448 |
|
$pollObject->setVar('multiple', Request::getInt('multiple', 0, 'POST')); |
| 449 |
|
$pollObject->setVar('user_id', Request::getInt('user_id', 0, 'POST')); |
| 450 |
|
if (Request::getInt('notify', 0, 'POST') && $end_time > time()) { |
| 451 |
|
// if notify, set mail status to "not mailed" |
| 452 |
|
$pollObject->setVar('mail_status', POLL_NOTMAILED); |
| 453 |
|
} else { |
| 454 |
|
// if not notify, set mail status to already "mailed" |
| 455 |
|
$pollObject->setVar('mail_status', POLL_MAILED); |
| 456 |
|
} |
| 457 |
|
|
| 458 |
|
if (!$pollObject->store()) { |
| 459 |
|
xoops_error($pollObject->getHtmlErrors); |