Fixes dumb timestamp if the user manually removes date

This commit is contained in:
snipe 2016-04-23 02:34:29 -07:00
parent 895fbb76bf
commit 93e7715c28

View file

@ -446,8 +446,8 @@ class AssetsController extends Controller
$user = User::find(e(Input::get('assigned_to')));
$admin = Auth::user();
if (Input::get('checkout_at')!= date("Y-m-d")) {
$checkout_at = e(Input::get('checkout_at')).' 00:00:00';
if ((Input::has('checkout_at')) && (Input::get('checkout_at')!= date("Y-m-d"))) {
$checkout_at = e(Input::get('checkout_at'));
} else {
$checkout_at = date("Y-m-d H:i:s");
}