mirror of
https://github.com/friendica/friendica
synced 2024-11-10 04:22:54 +00:00
Avoid notices
This commit is contained in:
parent
f48556cbc0
commit
36a1a43f06
2 changed files with 2 additions and 2 deletions
2
boot.php
2
boot.php
|
@ -1209,7 +1209,7 @@ function current_theme(){
|
|||
$a = get_app();
|
||||
|
||||
$system_theme = ((isset($a->config['system']['theme'])) ? $a->config['system']['theme'] : '');
|
||||
$theme_name = ((is_array($_SESSION) && x($_SESSION,'theme')) ? $_SESSION['theme'] : $system_theme);
|
||||
$theme_name = ((isset($_SESSION) && x($_SESSION,'theme')) ? $_SESSION['theme'] : $system_theme);
|
||||
|
||||
if($theme_name && file_exists('view/theme/' . $theme_name . '/style.css'))
|
||||
return($theme_name);
|
||||
|
|
|
@ -43,7 +43,7 @@ function dfrn_request_post(&$a) {
|
|||
return;
|
||||
|
||||
|
||||
if($_POST['cancel']) {
|
||||
if(x($_POST, 'cancel')) {
|
||||
goaway(z_root());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue