Browse Source

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
pull/3395/head
Damien Regad 3 months ago
parent
commit
ee4f28e375
  1. 2
      install.php

2
install.php

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

Loading…
Cancel
Save