Fixed PHP warning - thx laborix!

This commit is contained in:
azett 2022-11-13 13:16:45 +01:00
parent 9d918dd107
commit bee5635ec6

View File

@ -407,7 +407,8 @@ class Plugin_PrettyURLs {
$this->cache_delete_elem($id, $date); $this->cache_delete_elem($id, $date);
if ($this->index [$date ['y']] [$date ['m']] === false) { // Add year and month keys to index, if not present already
if (!array_key_exists($date ['y'], $this->index) || !array_key_exists($date ['m'], $this->index [$date ['y']]) || $this->index [$date ['y']] [$date ['m']] === false) {
$this->index [$date ['y']] [$date ['m']] = array(); $this->index [$date ['y']] [$date ['m']] = array();
} }