avoid warnings
authorMichael J. Rubinsky <mrubinsk@horde.org>
Tue, 2 Feb 2010 16:35:20 +0000 (11:35 -0500)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Tue, 2 Feb 2010 16:35:20 +0000 (11:35 -0500)
horde/lib/Block/fb_stream.php

index f7c6bdb..bb72d4c 100644 (file)
@@ -241,7 +241,7 @@ EOF;
             // Parse any attachments
             if (!empty($post['attachment'])) {
                 $html .= '<div class="fbattachment">';
-                if (count($post['attachment']['media'])) {
+                if (!empty($post['attachment']['media']) && count($post['attachment']['media'])) {
                     $html .= '<div class="fbmedia' . (count($post['attachment']['media']) > 1 ? ' fbmediawide' : '') . '">';
                     // Decide what mediaitem css class to use for padding and
                     // display the media items.