Browse Source

Improve SCORM tool to show message when item not found Fixing CT#253 requires testing

Julio Montoya 15 years ago
parent
commit
f852f97fa4
1 changed files with 2 additions and 3 deletions
  1. 2 3
      main/newscorm/learnpath.class.php

+ 2 - 3
main/newscorm/learnpath.class.php

@@ -3085,14 +3085,13 @@ class learnpath {
 										$document_name = $tmp_array[count($tmp_array) - 1];
 										if (strpos($document_name, '_DELETED_')) {
 											$file = 'blank.php?error=document_deleted';
+										} else {
+											$file = 'blank.php?error=document_not_found';
 										}
 									}
-
 								} else {
 									$file = $course_path . '/scorm/' . $lp_path . '/' . $decoded;
 								}
-							} else {
-								$file = 'blank.php?error=document_not_found';
 							}
 						}
 						//}else{