]> git.joonet.de Git - adminer.git/commitdiff
Notices: Silent unavoidable error
authorJakub Vrana <jakub@vrana.cz>
Sun, 23 Mar 2025 20:40:49 +0000 (21:40 +0100)
committerJakub Vrana <jakub@vrana.cz>
Sun, 23 Mar 2025 20:47:32 +0000 (21:47 +0100)
adminer/include/bootstrap.inc.php

index 14b5d54d1e0250509969fd876f239df559a8b805..6198404a501680f6c439060463aa8adaf6c16822 100644 (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"])));