]> git.mjollnir.org Git - moodle.git/commitdiff
fixing warning
authortoyomoyo <toyomoyo>
Wed, 20 Dec 2006 01:01:05 +0000 (01:01 +0000)
committertoyomoyo <toyomoyo>
Wed, 20 Dec 2006 01:01:05 +0000 (01:01 +0000)
blog/tags.html

index fa7ce5d0537b8a839412c6c4c6fecbc8d4c1e2df..73c7a3f0bb87808ab1187709ca88c3de48bb994e 100755 (executable)
@@ -21,9 +21,11 @@ print_heading(get_string('tagmanagement'));
             ?>
             <select name="tags[]" id="otags" multiple="multiple" size="8">
             <?php
+            if ($otags) {
                 foreach ($otags as $otag) {
                     echo '<option value="'.$otag->id.'">'.$otag->text.'</option>';
                 }
+            }
             ?>
             </select>
             <input type="hidden" name="action" value="delete" />