Ver Fonte

[svn r16630] Course restorer/archiver, file Course.class.php: The function is_linked_resource() has been fixed.

Ivan Tcholakov há 16 anos atrás
pai
commit
faa372c6b5
1 ficheiros alterados com 10 adições e 10 exclusões
  1. 10 10
      main/coursecopy/classes/Course.class.php

+ 10 - 10
main/coursecopy/classes/Course.class.php

@@ -1,4 +1,4 @@
-<?php // $Id: Course.class.php 12645 2007-06-18 20:46:16Z elixir_inter $
+<?php // $Id: Course.class.php 16630 2008-10-27 19:11:45Z ivantcholakov $
 /*
 ============================================================================== 
 	Dokeos - elearning and course management software
@@ -59,15 +59,15 @@ class Course
 				if( $resource->links_to($resource_to_check) )
 				{
 					return true;	
-				}	
-			}	
-			if( $type == RESOURCE_LEARNPATH && get_class($resource)=='Learnpath')
-			{
-				if($resource->has_item($resource_to_check))
+				}
+				if( $type == RESOURCE_LEARNPATH && get_class($resource)=='Learnpath')
 				{
-					return true;	
-				}	
-			}
+					if($resource->has_item($resource_to_check))
+					{
+						return true;	
+					}	
+				}
+			}	
 		}
 		return false;
 	}
@@ -111,4 +111,4 @@ class Course
 	}
 
 }
-?>
+?>