projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a195e0
)
avoid warnings
author
Michael J. Rubinsky
<mrubinsk@horde.org>
Tue, 2 Feb 2010 16:35:20 +0000
(11:35 -0500)
committer
Michael J. Rubinsky
<mrubinsk@horde.org>
Tue, 2 Feb 2010 16:35:20 +0000
(11:35 -0500)
horde/lib/Block/fb_stream.php
patch
|
blob
|
history
diff --git
a/horde/lib/Block/fb_stream.php
b/horde/lib/Block/fb_stream.php
index
f7c6bdb
..
bb72d4c
100644
(file)
--- 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 .= '<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.