Skip to content

Commit

Permalink
fix notice on update
Browse files Browse the repository at this point in the history
  • Loading branch information
orthagh committed Oct 8, 2015
1 parent c1635eb commit fce111e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion inc/commonglpi.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1060,7 +1060,7 @@ function show($options=array()) {
* @return bool
*/
public static function isLayoutWithMain() {
return in_array($_SESSION['glpilayout'], array('classic', 'vsplit'));
return (isset($_SESSION['glpilayout']) && in_array($_SESSION['glpilayout'], array('classic', 'vsplit')));
}


Expand Down
4 changes: 3 additions & 1 deletion inc/html.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1065,7 +1065,9 @@ static function includeHeader($title='') {
echo Html::css($CFG_GLPI["root_doc"]."/css/styles.css");

// CSS theme link
echo Html::css($CFG_GLPI["root_doc"]."/css/palettes/".$_SESSION["glpipalette"].".css");
if (isset($_SESSION["glpipalette"])) {
echo Html::css($CFG_GLPI["root_doc"]."/css/palettes/".$_SESSION["glpipalette"].".css");
}

// surcharge CSS hack for IE
echo "<!--[if lte IE 6]>" ;
Expand Down

0 comments on commit fce111e

Please sign in to comment.