Silence error for unwriteable file

This commit is contained in:
Jakub Vrana 2014-03-25 09:35:49 -07:00
parent 06f4346cfe
commit ee124dadb1

View file

@ -20,7 +20,7 @@ function add_invalid_login() {
$filename = get_temp_dir() . "/adminer.invalid";
$fp = @fopen($filename, "r+"); // @ - may not exist
if (!$fp) { // c+ is available since PHP 5.2.6
$fp = fopen($filename, "w");
$fp = @fopen($filename, "w"); // @ - may not be writable
if (!$fp) {
return;
}