1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-07 23:27:17 +02:00

Notices: Silent unavoidable error

This commit is contained in:
Jakub Vrana
2025-03-23 21:40:49 +01:00
parent f5ecb18896
commit 3cd50c9a02

View File

@@ -31,7 +31,7 @@ if (isset($_GET["file"])) {
if ($_GET["script"] == "version") {
$filename = get_temp_dir() . "/adminer.version";
unlink($filename); // it may not be writable by us
@unlink($filename); // it may not be writable by us, @ - it may not exist
$fp = file_open_lock($filename);
if ($fp) {
file_write_unlock($fp, serialize(array("signature" => $_POST["signature"], "version" => $_POST["version"])));