Print the number of comers when the event contains only one sub-event. (Closes #825)
[platal.git] / classes / csvimporter.php
index 6590df4..522544f 100644 (file)
@@ -330,6 +330,9 @@ class CSVImporter
                 $fields[]     = $key;
             }
             if ($current == 'valid' && Env::has('csv_valid')) {
+                if (!S::has_xsrf_token()) {
+                    $page->kill("L'opération n'a pas pu être effectuée, merci de réessayer.");
+                }
                 $this->run($_SESSION['csv_action'], $insert, $update);
                 $page->assign('csv_done', true);
                 $this->cleanSession($sesfields);