diff --git a/core/ajax/jeedom.ajax.php b/core/ajax/jeedom.ajax.php index dcd94081fd..09926c28fc 100644 --- a/core/ajax/jeedom.ajax.php +++ b/core/ajax/jeedom.ajax.php @@ -610,7 +610,9 @@ if (init('action') == 'emptyRemoveHistory') { unautorizedInDemo(); - unlink(__DIR__ . '/../../data/remove_history.json'); + if (file_exists(__DIR__ . '/../../data/remove_history.json')) { + unlink(__DIR__ . '/../../data/remove_history.json'); + } ajax::success(); }