Browse Source

Minor - adding message

Julio Montoya 14 years ago
parent
commit
d8b49f3511
1 changed files with 3 additions and 1 deletions
  1. 3 1
      main/inc/ajax/course_home.ajax.php

+ 3 - 1
main/inc/ajax/course_home.ajax.php

@@ -72,9 +72,11 @@ switch ($action) {
 		if (Database::num_rows($result) > 0 ) {		        
 		    while ($description = Database::fetch_object($result)) {
 			    $descriptions[$description->id] = $description;
-		    }
+		    }		    
             // Function that displays the details of the course description in html.
 		    echo CourseManager::get_details_course_description_html($descriptions, api_get_system_encoding(), false);
+		} else {
+		    echo get_lang('NoDescription');
 		}		
 	    break;    
     /**