|
@@ 273-276 (lines=4) @@
|
| 270 |
|
break; |
| 271 |
|
} |
| 272 |
|
} |
| 273 |
|
if ($option_empty) { |
| 274 |
|
// irmtfan - issue with javascript:history.go(-1) |
| 275 |
|
redirect_header(Request::getString('HTTP_REFERER', '', 'SERVER'), 2, _MD_NEWBB_ERROROCCURED . ': ' . _MD_NEWBB_POLL_POLLOPTIONS . ' !'); |
| 276 |
|
} |
| 277 |
|
$pollObject->setVar('question', Request::getString('question', '', 'POST')); |
| 278 |
|
$pollObject->setVar('description', Request::getString('description', '', 'POST')); |
| 279 |
|
$end_time = Request::getString('end_time', '', 'POST'); // (empty($_POST['end_time'])) ? "" : $_POST['end_time']; |
|
@@ 345-347 (lines=3) @@
|
| 342 |
|
$option_text = Request::getString('option_text', '', 'POST'); |
| 343 |
|
$option_string = is_array($option_text) ? implode('', $option_text) : $option_text; |
| 344 |
|
$option_string = trim($option_string); |
| 345 |
|
if ('' === $option_string) { |
| 346 |
|
redirect_header(Request::getString('HTTP_REFERER', '', 'SERVER'), 2, _MD_NEWBB_ERROROCCURED . ': ' . _MD_NEWBB_POLL_POLLOPTIONS . ' !'); |
| 347 |
|
} |
| 348 |
|
|
| 349 |
|
// new xoopspoll module |
| 350 |
|
if ($pollModuleHandler->getVar('version') >= 140) { |
|
@@ 549-552 (lines=4) @@
|
| 546 |
|
$option_text = Request::getString('option_text', '', 'POST'); |
| 547 |
|
$option_string = is_array($option_text) ? implode('', $option_text) : $option_text; |
| 548 |
|
$option_string = trim($option_string); |
| 549 |
|
if ('' === $option_string) { |
| 550 |
|
// irmtfan - issue with javascript:history.go(-1) |
| 551 |
|
redirect_header(Request::getString('HTTP_REFERER', '', 'SERVER'), 2, _MD_NEWBB_ERROROCCURED . ': ' . _MD_NEWBB_POLL_POLLOPTIONS . ' !'); |
| 552 |
|
} |
| 553 |
|
$i = 0; |
| 554 |
|
$option_color = Request::getArray('option_color', null, 'POST'); |
| 555 |
|
foreach ($option_text as $optxt) { |