]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-14392 - Notice from description question types when you don't have edit permission
authortjhunt <tjhunt>
Wed, 16 Apr 2008 16:56:33 +0000 (16:56 +0000)
committertjhunt <tjhunt>
Wed, 16 Apr 2008 16:56:33 +0000 (16:56 +0000)
question/type/description/questiontype.php

index 1a2434b55371db203a525bbe75c6101a1c468280..0ac008c493c61e261152bc70362b1dd539525485 100644 (file)
@@ -54,6 +54,7 @@ class description_qtype extends default_questiontype {
         }
 
         // For editing teachers print a link to an editing popup window
+        $editlink = '';
         if (question_has_capability_on($question, 'edit')) {
             $stredit = get_string('edit');
             $linktext = '<img src="'.$CFG->pixpath.'/t/edit.gif" alt="'.$stredit.'" />';