Skip to content

Commit

Permalink
fixed bug: save space with no content resulted in exception
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Car committed May 19, 2016
1 parent 4928c0b commit 5a4eb66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Http/Controllers/Admin/SpaceController.php
Original file line number Diff line number Diff line change
Expand Up @@ -900,7 +900,7 @@ public function space_edit_submit(Request $request)
foreach ($controls as $key => $control) {

/* return true if present or an empty string if not */
//if ($request->has($control['type'] . '--' . $key)) {
if ($request->has($control['type'] . '--' . $key)) {

$request_val = $request->input($control['type'] . '--' . $key);

Expand Down Expand Up @@ -993,7 +993,7 @@ public function space_edit_submit(Request $request)
}


//} /* end: if */
} /* end: if */

} /* end: foreach */

Expand Down

0 comments on commit 5a4eb66

Please sign in to comment.