From 3fcd0af1379f1533b832c00d58e43f098d83ae96 Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Tue, 2 Feb 2010 11:35:20 -0500 Subject: [PATCH] avoid warnings --- horde/lib/Block/fb_stream.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- 2.11.0