]> git.mxchange.org Git - friendica.git/commitdiff
Avoid a Notice
authorTobias Hößl <tobias@hoessl.eu>
Mon, 27 Feb 2012 22:17:57 +0000 (22:17 +0000)
committerTobias Hößl <tobias@hoessl.eu>
Mon, 27 Feb 2012 22:17:57 +0000 (22:17 +0000)
boot.php

index 54f318e5e9f0284e9dd44f2a17c701074fca85b0..c89dae27ccbf680cbc24732ceefe7d1859bf98fa 100755 (executable)
--- a/boot.php
+++ b/boot.php
@@ -1335,7 +1335,7 @@ function profile_tabs($a, $is_owner=False, $nickname=Null){
                array(
                        'label' => t('Profile'),
                        'url'   => $url.'/?tab=profile',
-                       'sel'   => (($tab=='profile')?'active':''),
+                       'sel'   => ((isset($tab) && $tab=='profile')?'active':''),
                ),
                array(
                        'label' => t('Photos'),