From ee4f28e375cf4047b0524963d68f20ed5f5da2b0 Mon Sep 17 00:00:00 2001 From: Damien Regad Date: Tue, 26 Jan 2021 12:06:19 +0100 Subject: [PATCH] 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 --- install.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.php b/install.php index d2c0d6b96..f37a15435 100644 --- a/install.php +++ b/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'); }