Browse Source

[svn r15645] Removed notice-level messages

Yannick Warnier 16 years ago
parent
commit
a3ba5f4a81
2 changed files with 3 additions and 3 deletions
  1. 1 1
      main/inc/reduced_header.inc.php
  2. 2 2
      main/newscorm/lp_controller.php

+ 1 - 1
main/inc/reduced_header.inc.php

@@ -123,7 +123,7 @@ if (!empty($lp_theme_log)){
 }
 
 // Sets the css reference it is call from lp_nav.php, lp_toc.php, lp_message, lp_log.php
-if ($scorm_css_header) 
+if (!empty($scorm_css_header)) 
 {	
 	if (!empty($my_style)) 
 	{

+ 2 - 2
main/newscorm/lp_controller.php

@@ -91,8 +91,8 @@ if(isset($_SESSION['lpobject']))
 }
 if($debug>0) error_log('New LP - Passed data remains check',0);
 
-if($lp_found == false 
-	|| ($_SESSION['oLP']->get_id() != $_REQUEST['lp_id'])
+if($lp_found == false
+	|| (!empty($_REQUEST['lp_id']) && $_SESSION['oLP']->get_id() != $_REQUEST['lp_id'])
 	)
 {
 	if($debug>0) error_log('New LP - oLP is not object, has changed or refresh been asked, getting new',0);