Skip to content

Commit

Permalink
Don't throw exception if no settings to restore
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian Eckerstorfer committed Mar 6, 2015
1 parent 2dc1746 commit 6fe4a14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Twig/BootstrapFormExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ public function backupFormSettings()
public function restoreFormSettings()
{
if (count($this->settingsStack) < 1) {
throw new \UnderflowException("No settings on the stack to restore");
return;
}

$settings = array_pop($this->settingsStack);
Expand Down

0 comments on commit 6fe4a14

Please sign in to comment.