]> git.mjollnir.org Git - moodle.git/commitdiff
"FORUM/MDL-14860, declare subtext varible before use it, merged from 1.9"
authordongsheng <dongsheng>
Tue, 3 Mar 2009 01:03:56 +0000 (01:03 +0000)
committerdongsheng <dongsheng>
Tue, 3 Mar 2009 01:03:56 +0000 (01:03 +0000)
index.php

index 2d16698dcd7b7b819b39c63d13dcd31080fca15f..d0e8f5d75d269def920a25bd5ae3a8af85714e78 100644 (file)
--- a/index.php
+++ b/index.php
 
                     if (!empty($USER->id)) {
                         $SESSION->fromdiscussion = $CFG->wwwroot;
+                        $subtext = '';
                         if (forum_is_subscribed($USER->id, $newsforum)) {
                             if (!forum_is_forcesubscribed($newsforum)) {
                                 $subtext = get_string('unsubscribe', 'forum');