]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-16587: mod/forum portfolio implementation: fixed warning.
authormjollnir_ <mjollnir_>
Mon, 13 Oct 2008 10:10:14 +0000 (10:10 +0000)
committermjollnir_ <mjollnir_>
Mon, 13 Oct 2008 10:10:14 +0000 (10:10 +0000)
mod/forum/lib.php

index ecfeeeb16d7622a2df3e54289ba14a97b224cbc6..a915bce252e090629a22799c6df9cbb0606cc465 100644 (file)
@@ -7404,7 +7404,7 @@ class forum_portfolio_caller extends portfolio_module_caller_base {
 
         $output .= $formattedtext;
 
-        if (array_key_exists($post->id, $this->keyedfiles) && is_array($this->keyedfiles[$post->id])) {
+        if (is_array($this->keyedfiles) && array_key_exists($post->id, $this->keyedfiles) && is_array($this->keyedfiles[$post->id])) {
             $output .= '<div class="attachments">';
             $output .= '<br /><b>' .  get_string('attachments', 'forum') . '</b>:<br /><br />';
             $format = $this->get('exporter')->get('format');