From: mjollnir_ Date: Mon, 13 Oct 2008 10:10:14 +0000 (+0000) Subject: MDL-16587: mod/forum portfolio implementation: fixed warning. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=42579aeeb82d1944f2c917c96aa2bfcf621a224e;p=moodle.git MDL-16587: mod/forum portfolio implementation: fixed warning. --- diff --git a/mod/forum/lib.php b/mod/forum/lib.php index ecfeeeb16d..a915bce252 100644 --- a/mod/forum/lib.php +++ b/mod/forum/lib.php @@ -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 .= '
'; $output .= '
' . get_string('attachments', 'forum') . ':

'; $format = $this->get('exporter')->get('format');