Update device_edit.php

This commit is contained in:
FusionPBX 2019-04-13 01:34:00 -06:00 committed by GitHub
parent e6050cb193
commit 9118cdd1a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -295,6 +295,11 @@
$save = true;
}
//set the device_enabled_date
if ($_POST["device_enabled"] == "true") {
$_POST["device_enabled_date"] = 'now()';
}
//prepare the array
$array['devices'][] = $_POST;