From: Michael J. Rubinsky Date: Tue, 2 Feb 2010 16:35:20 +0000 (-0500) Subject: avoid warnings X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=3fcd0af1379f1533b832c00d58e43f098d83ae96;p=horde.git avoid warnings --- diff --git a/horde/lib/Block/fb_stream.php b/horde/lib/Block/fb_stream.php index f7c6bdb62..bb72d4cce 100644 --- a/horde/lib/Block/fb_stream.php +++ b/horde/lib/Block/fb_stream.php @@ -241,7 +241,7 @@ EOF; // Parse any attachments if (!empty($post['attachment'])) { $html .= '
'; - if (count($post['attachment']['media'])) { + if (!empty($post['attachment']['media']) && count($post['attachment']['media'])) { $html .= '
'; // Decide what mediaitem css class to use for padding and // display the media items.