Bug in purchase date

This commit is contained in:
snipe
2015-07-27 17:11:46 -07:00
parent fdb31ac19e
commit 4014f5e15b
+6 -2
View File
@@ -123,8 +123,12 @@ class ImportCommand extends Command {
$user_asset_notes = '';
}
if (array_key_exists('9',$row)) {
$user_asset_purchase_date = date("Y-m-d 00:00:01", strtotime($row[10]));
if (array_key_exists('10',$row)) {
if ($row[10]!='') {
$user_asset_purchase_date = date("Y-m-d 00:00:01", strtotime($row[10]));
} else {
$user_asset_purchase_date = '';
}
} else {
$user_asset_purchase_date = '';
}