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