Skip to content
Snippets Groups Projects
Commit 65f3828d authored by Florian Azizian's avatar Florian Azizian
Browse files

FIX delete notification without sh

parent 0d3b2208
No related branches found
No related tags found
No related merge requests found
......@@ -244,7 +244,10 @@ class NotificationController
NotificationScheduleModel::saveCrontab($cronTab);
}
unlink($pathToFolow.'modules/notifications/batch/scripts/'.$filename);
$filePath = $pathToFolow.'modules/notifications/batch/scripts/'.$filename;
if (file_exist($filePath)) {
unlink($filePath);
}
}
return $response->withJson([
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment