Avoid warning undefined variable

This commit is contained in:
Blade of Darkness 2021-01-12 14:05:31 +01:00
parent 68aded8aef
commit 2503482ae2
1 changed files with 5 additions and 2 deletions

View File

@ -8,7 +8,10 @@ include('config.php');
include('parsedown-1.7.3/Parsedown.php');
$page = $_GET['page'];
$style = $_GET['style'];
if (isset($_GET['style']))
{
$style = $_GET['style'];
}
$Parsedown = new Parsedown();
$Parsedown->setSafeMode(true);
@ -16,7 +19,7 @@ if ( $page == "") {
$page = "main";
}
if ( $style == "") {
if (empty($style)) {
if ( $site_style == "") {
$site_style="site";
}