Commit 9c05f9d9 authored by Ayush's avatar Ayush

Minor fix

parent 6b5dc25a
......@@ -36,7 +36,7 @@ if (isset($postData) && !empty($postData)) {
mysqli_query($mysqli,$sql);
$msg = "file successfully deleted";
echo json_encode($msg);
if (file_exists($exec_path)){
if (file_exists($exec_path) && is_file($exec_path)) {
unlink($exec_path);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment