Fix warning in install.php on PHP 8

Warning: Undefined array key "pop" in install.php on line 427

In PHP 8, attempting to read an undefined array key throws a warning
instead of a notice as in earlier versions [1].

[1]: https://www.php.net/manual/en/migration80.incompatible.php
This commit is contained in:
Damien Regad 2021-01-26 12:06:19 +01:00
parent 7347c7c107
commit ee4f28e375
1 changed files with 1 additions and 1 deletions

View File

@ -424,7 +424,7 @@ EOT;
} }
// enable popularity submission // enable popularity submission
if($d['pop']){ if(isset($d['pop']) && $d['pop']){
@touch(DOKU_INC.'data/cache/autosubmit.txt'); @touch(DOKU_INC.'data/cache/autosubmit.txt');
} }