snipe-it
snipe-it copied to clipboard
Undefined variable: checkModel
Since updating to 1.2.6.1 yesterday I receive this message anytime I create/edit an asset.
Undefined variable: checkModel
for file app/controllers/admin/AssetsController.php:
if (e(Input::get('rtd_location_id')) == '') { $asset->rtd_location_id = NULL; } else { $asset->rtd_location_id = e(Input::get('rtd_location_id')); }
$asset->mac_address = ($checkModel == true) ? e(Input::get('mac_address')) : NULL;
// Save the asset data
A bunch of other php files also through a checkModel exception.