Avoid warning undefined variable
This commit is contained in:
parent
68aded8aef
commit
2503482ae2
7
wiki.php
7
wiki.php
|
@ -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";
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue