Skip to content
Snippets Groups Projects
Commit 4a59a604 authored by Manuel Herrmann's avatar Manuel Herrmann
Browse files

story errors direct to form

parent 5f4df5ef
No related branches found
No related tags found
No related merge requests found
...@@ -204,7 +204,8 @@ function index_check_field($index, $check, &$datarr, &$errarr, $errmess){ ...@@ -204,7 +204,8 @@ function index_check_field($index, $check, &$datarr, &$errarr, $errmess){
function index_show_formular($fid, $bid = NULL, $bachelor = NULL){ function index_show_formular($fid, $bid = NULL, $bachelor = NULL){
global $index_db, $config_studitypen, $config_essen, $config_reisearten, $invalidCharsRegEx; global $index_db, $config_studitypen, $config_essen, $config_reisearten, $invalidCharsRegEx;
if (!isset($_GET['noscript'])) $withStoryMode = !isset($_GET['noscript']) && !isset($_REQUEST['submit']) && !isset($_REQUEST['storySubmit']);
if ($withStoryMode)
echo '<noscript>'; echo '<noscript>';
$possible_dates = comm_get_possible_dates($index_db, $fid); $possible_dates = comm_get_possible_dates($index_db, $fid);
...@@ -246,7 +247,7 @@ function index_show_formular($fid, $bid = NULL, $bachelor = NULL){ ...@@ -246,7 +247,7 @@ function index_show_formular($fid, $bid = NULL, $bachelor = NULL){
<div class="spacer"></div> <div class="spacer"></div>
</form> </form>
</div>'; </div>';
if (!isset($_GET['noscript'])) if ($withStoryMode)
{ {
echo '</noscript>'; echo '</noscript>';
echo '<h2>Anmeldeformular</h2>'; echo '<h2>Anmeldeformular</h2>';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment