Skip to content

Commit

Permalink
fix(form): typo in var name
Browse files Browse the repository at this point in the history
Signed-off-by: Thierry Bugier <tbugier@teclib.com>
  • Loading branch information
btry committed Jan 9, 2020
1 parent 387f1f2 commit 47ed617
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inc/form.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1905,7 +1905,7 @@ public function importJson($params = []) {
self::import($linker, $form);
} catch (ImportFailureException $e) {
// Import failed, give up
$sucess = false;
$success = false;
Session::addMessageAfterRedirect($e->getMessage(), false, ERROR);
continue;
}
Expand All @@ -1914,7 +1914,7 @@ public function importJson($params = []) {
$$form['name']));
}
}
if ($sucess) {
if ($success) {
Session::addMessageAfterRedirect(sprintf(__("Forms successfully imported from %s", "formcreator"),
$filename));
}
Expand Down

0 comments on commit 47ed617

Please sign in to comment.