]> git.mxchange.org Git - friendica.git/commitdiff
Avoid notices
authorTobias Hößl <tobias@hoessl.eu>
Tue, 28 Feb 2012 13:42:12 +0000 (13:42 +0000)
committerTobias Hößl <tobias@hoessl.eu>
Tue, 28 Feb 2012 13:42:12 +0000 (13:42 +0000)
boot.php
mod/dfrn_request.php

index c89dae27ccbf680cbc24732ceefe7d1859bf98fa..e39504e11c1645cc94ba1c8b3ae56cf53def04e6 100755 (executable)
--- a/boot.php
+++ b/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);
index bc159137df697046fa14abb9ee8bc18b59f4a5e0..452fec1669fe1880d1a1df44e39511c9ba3a4573 100755 (executable)
@@ -43,7 +43,7 @@ function dfrn_request_post(&$a) {
                return;
 
 
-       if($_POST['cancel']) {
+       if(x($_POST, 'cancel')) {
                goaway(z_root());
        }