fixed 'undefined index' notice

This commit is contained in:
tsia 2018-10-17 14:00:13 +00:00
parent 3e554ec5c0
commit 51647c42d7
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@
</div>
<div class="dark_theme_wrap" style="float:left;width:50%">
<div class="switch">
<input type="checkbox" id="setting_dark_theme" <?php if($_COOKIE['darktheme'] == "true") echo "checked='checked'" ?>>
<input type="checkbox" id="setting_dark_theme" <?php if(array_key_exists('darktheme', $_COOKIE) && $_COOKIE['darktheme'] == "true") echo "checked='checked'" ?>>
<div class="switch-btn">
<span></span>
</div>