Jelajahi Sumber

[svn r17185] minor - style changes - defined variable

Isaac Flores 16 tahun lalu
induk
melakukan
872401f7b7
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 2 2
      main/gradebook/lib/be/studentpublicationlink.class.php

+ 2 - 2
main/gradebook/lib/be/studentpublicationlink.class.php

@@ -239,12 +239,12 @@ class StudentPublicationLink extends AbstractLink
 	 
     public function get_name() {
     	$this->get_exercise_data();
-    	return $this->exercise_data['url'];
+    	return isset($this->exercise_data['url']) ? $this->exercise_data['url'] : null;
     }    
 	
     public function get_description() {
     	$this->get_exercise_data();
-    	return $this->exercise_data['description'];
+    	return isset($this->exercise_data['description']) ? $this->exercise_data['description'] : null;
     } 
     
     public function get_test_id() {