Browse Source

[svn r18383] FS#2867 - FCKEditor, the MP3 plugin: Preventing the plugin to show directories, their URLs should not be treated as audio files.

Ivan Tcholakov 16 years ago
parent
commit
b576e6da4c
1 changed files with 6 additions and 0 deletions
  1. 6 0
      main/inc/course_document.inc.php

+ 6 - 0
main/inc/course_document.inc.php

@@ -250,6 +250,12 @@ if($docs_and_folders)
 	$sortable_data = array();
 	while (list ($key, $id) = each($docs_and_folders))
 	{
+		// Skip directories.
+		if ($id['filetype'] != 'file')
+		{
+			continue;
+		}
+
 		$row = array ();
 
 		//if the item is invisible, wrap it in a span with class invisible