Possible fix for #5318, if delete_device called in webui then continue to run (#5703)

* Possible fix for #5318, if delete_device called in webui then continue to run

* derp
This commit is contained in:
Neil Lathwood
2017-02-01 20:17:35 +00:00
committed by GitHub
parent 6b0ed757f3
commit ba2f88ee72

View File

@ -316,6 +316,12 @@ function renamehost($id, $new, $source = 'console')
function delete_device($id)
{
global $config, $debug;
if (isCli() === false) {
ignore_user_abort(true);
set_time_limit(0);
}
$ret = '';
$host = dbFetchCell("SELECT hostname FROM devices WHERE device_id = ?", array($id));