diff --git a/FormBuilder.php b/FormBuilder.php index 32568ae..0c66423 100755 --- a/FormBuilder.php +++ b/FormBuilder.php @@ -635,7 +635,7 @@ class FormBuilder { */ protected function getCheckboxCheckedState($name, $value, $checked) { - if ( ! $this->oldInputIsEmpty() && is_null($this->old($name))) return false; + if (isset($this->session) && ! $this->oldInputIsEmpty() && is_null($this->old($name))) return false; if ($this->missingOldAndModel($name)) return $checked;