diff --git a/FormBuilder.php b/FormBuilder.php index 9f50bf3..53b880c 100755 --- a/FormBuilder.php +++ b/FormBuilder.php @@ -639,7 +639,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;