Skip to content

Commit 6fe4a14

Browse files
author
Florian Eckerstorfer
committed
Don't throw exception if no settings to restore
1 parent 2dc1746 commit 6fe4a14

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Twig/BootstrapFormExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ public function backupFormSettings()
212212
public function restoreFormSettings()
213213
{
214214
if (count($this->settingsStack) < 1) {
215-
throw new \UnderflowException("No settings on the stack to restore");
215+
return;
216216
}
217217

218218
$settings = array_pop($this->settingsStack);

0 commit comments

Comments
 (0)