diff --git a/App/Controllers/Posts.php b/App/Controllers/Posts.php index 23d49c9..cbe08b3 100644 --- a/App/Controllers/Posts.php +++ b/App/Controllers/Posts.php @@ -156,6 +156,13 @@ class Posts unset($args['_addon']); } + foreach ($args as $value) { + if ($value == '') { + Session::flash('info', 'All data must not be empty'); + Redirect::to('./entry'); + } + } + if ($this->post->entry($table, $args)) { Session::flash('info', 'Data successfuly uploaded');