warning à l'installation

This commit is contained in:
Fred Tempez 2023-07-18 11:14:22 +02:00
parent 54de5c4258
commit 8bf2d89906
1 changed files with 4 additions and 1 deletions

View File

@ -509,7 +509,10 @@ class core extends common
file_exists(self::DATA_DIR . $key . '/page.json')
) {
$pagesId = json_decode(file_get_contents(self::DATA_DIR . $key . '/page.json'), true);
if (array_key_exists($this->getUrl(0), $pagesId['page'])) {
if (
is_array($pagesId['page']) &&
array_key_exists($this->getUrl(0), $pagesId['page'])
) {
$_SESSION['ZWII_CONTENT'] = $key;
header('Refresh:0; url=' . helper::baseUrl() . $this->getUrl(0));
exit();