mirror of
https://github.com/vrana/adminer.git
synced 2025-08-11 17:14:07 +02:00
Silence error for unwriteable file
This commit is contained in:
@@ -20,7 +20,7 @@ function add_invalid_login() {
|
|||||||
$filename = get_temp_dir() . "/adminer.invalid";
|
$filename = get_temp_dir() . "/adminer.invalid";
|
||||||
$fp = @fopen($filename, "r+"); // @ - may not exist
|
$fp = @fopen($filename, "r+"); // @ - may not exist
|
||||||
if (!$fp) { // c+ is available since PHP 5.2.6
|
if (!$fp) { // c+ is available since PHP 5.2.6
|
||||||
$fp = fopen($filename, "w");
|
$fp = @fopen($filename, "w"); // @ - may not be writable
|
||||||
if (!$fp) {
|
if (!$fp) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user