From c128a37160b3c4ecb03f6c49cd83410b9f1d8640 Mon Sep 17 00:00:00 2001 From: bebyx <35663391+bebyx@users.noreply.github.com> Date: Sat, 20 Aug 2022 19:17:04 +0300 Subject: [PATCH] Fix editing global pages for 7.4 (#487) --- inc/mod/pages.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/mod/pages.php b/inc/mod/pages.php index e90af00e..6f8e8f14 100644 --- a/inc/mod/pages.php +++ b/inc/mod/pages.php @@ -2800,7 +2800,7 @@ function mod_edit_page($id) { $query->bindValue(':id', $id); $query->execute() or error(db_error($query)); - $fn = ($board['uri'] ? ($board['uri'] . '/') : '') . $page['name'] . '.html'; + $fn = (isset($board['uri']) ? ($board['uri'] . '/') : '') . $page['name'] . '.html'; $body = "
$write
"; $html = Element('page.html', array('config' => $config, 'boardlist' => createBoardlist(), 'body' => $body, 'title' => utf8tohtml($page['title']))); file_write($fn, $html);