From 76049f4111d2f703b5968dd4484701177c3e7a35 Mon Sep 17 00:00:00 2001 From: Yannick Warnier Date: Sat, 28 Jun 2008 04:20:41 +0200 Subject: [PATCH] [svn r15644] Removed notice-level messages --- main/inc/lib/main_api.lib.php | 1 + main/inc/reduced_header.inc.php | 4 ++-- main/newscorm/learnpath.class.php | 9 ++++----- main/newscorm/learnpathList.class.php | 1 - main/newscorm/lp_controller.php | 13 +++++++++---- main/newscorm/lp_list.php | 16 +++++++--------- main/newscorm/lp_message.php | 1 + main/newscorm/lp_view.php | 5 ++++- 8 files changed, 28 insertions(+), 22 deletions(-) diff --git a/main/inc/lib/main_api.lib.php b/main/inc/lib/main_api.lib.php index ccd8192d12..9739491ab0 100644 --- a/main/inc/lib/main_api.lib.php +++ b/main/inc/lib/main_api.lib.php @@ -1091,6 +1091,7 @@ class api_failure function get_last_failure() { global $api_failureList; + if(count($api_failureList)==0){return '';} return $api_failureList[count($api_failureList) - 1]; } } diff --git a/main/inc/reduced_header.inc.php b/main/inc/reduced_header.inc.php index 74dabb78bc..6a9a44b45c 100644 --- a/main/inc/reduced_header.inc.php +++ b/main/inc/reduced_header.inc.php @@ -118,7 +118,7 @@ if (!empty($mycourseid) && $mycourseid != -1) } } -if ($lp_theme_log){ +if (!empty($lp_theme_log)){ $my_style=$platform_theme; } @@ -136,7 +136,7 @@ if ($scorm_css_header) $scormfs_css='scormfs.css'; } - if($display_mode == 'fullscreen') + if(!empty($display_mode) && $display_mode == 'fullscreen') { $htmlHeadXtra[] = '