Fixes dumb timestamp if the user manually removes date
This commit is contained in:
parent
895fbb76bf
commit
93e7715c28
1 changed files with 3 additions and 3 deletions
|
@ -446,8 +446,8 @@ class AssetsController extends Controller
|
||||||
$user = User::find(e(Input::get('assigned_to')));
|
$user = User::find(e(Input::get('assigned_to')));
|
||||||
$admin = Auth::user();
|
$admin = Auth::user();
|
||||||
|
|
||||||
if (Input::get('checkout_at')!= date("Y-m-d")) {
|
if ((Input::has('checkout_at')) && (Input::get('checkout_at')!= date("Y-m-d"))) {
|
||||||
$checkout_at = e(Input::get('checkout_at')).' 00:00:00';
|
$checkout_at = e(Input::get('checkout_at'));
|
||||||
} else {
|
} else {
|
||||||
$checkout_at = date("Y-m-d H:i:s");
|
$checkout_at = date("Y-m-d H:i:s");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue