Avoid warning undefined variable

This commit is contained in:
Blade of Darkness 2021-01-04 20:28:25 +01:00
parent fa3e7ed385
commit d163822726
1 changed files with 5 additions and 2 deletions

View File

@ -9,7 +9,10 @@ include('parsedown-1.7.3/Parsedown.php');
include('parsedown-extra-0.7.1/ParsedownExtra.php');
$page = $_GET['page'];
$style = $_GET['style'];
if (isset($_GET['style']))
{
$style = $_GET['style'];
}
$Parsedown = new Parsedown();
$Parsedown->setMarkupEscaped(true);
$ParsedownExtra = new ParsedownExtra();
@ -18,7 +21,7 @@ if ( $page == "") {
$page = "main";
}
if ( $style == "") {
if ( empty($style)) {
if ( $site_style == "") {
$site_style="site";
}