Avoid warning undefined variable
This commit is contained in:
parent
fa3e7ed385
commit
d163822726
7
wiki.php
7
wiki.php
@ -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";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user