if null then throw error alert

This commit is contained in:
awesomeuser 2023-08-04 16:22:03 +00:00
parent 6adacf933f
commit 459cdeb4f9

View file

@ -24,7 +24,7 @@
fwrite($myfile, $content);
fclose($myfile);
} else {
echo '<script>alert("Please draw something.")</script>';
echo '<script>alert("An error occured.")</script>';
}
?>