diff options
author | Friendika <info@friendika.com> | 2010-11-03 19:47:07 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2010-11-03 19:47:07 -0700 |
commit | b3856a797bcd3e54197f9014eaeef8bc813fc281 (patch) | |
tree | 95a720f9ce0a1e00df36c32c43a00cc41abb0cca /mod/display.php | |
parent | a90e5f438b24e7d150e068acfc6b80ba8bad2597 (diff) | |
download | volse-hubzilla-b3856a797bcd3e54197f9014eaeef8bc813fc281.tar.gz volse-hubzilla-b3856a797bcd3e54197f9014eaeef8bc813fc281.tar.bz2 volse-hubzilla-b3856a797bcd3e54197f9014eaeef8bc813fc281.zip |
show like/dislike when no comments yet, bit of lint
Diffstat (limited to 'mod/display.php')
-rw-r--r-- | mod/display.php | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/mod/display.php b/mod/display.php index b451d6930..c08b0ca92 100644 --- a/mod/display.php +++ b/mod/display.php @@ -128,8 +128,13 @@ function display_content(&$a) { } foreach($r as $item) { - $comment = ''; + $template = $tpl; + + $comment = ''; + $owner_url = ''; + $owner_photo = ''; + $owner_name = ''; $redirect_url = $a->get_baseurl() . '/redir/' . $item['cid'] ; @@ -215,8 +220,9 @@ function display_content(&$a) { else $drop = replace_macros(load_view_file('view/wall_fake_drop.tpl'), array('$id' => $item['id'])); - $like = (($alike[$item['id']]) ? format_like($alike[$item['id']],$alike[$item['id'] . '-l'],'like',$item['id']) : ''); - $dislike = (($dlike[$item['id']]) ? format_like($dlike[$item['id']],$dlike[$item['id'] . '-l'],'dislike',$item['id']) : ''); + $like = ((isset($alike[$item['id']])) ? format_like($alike[$item['id']],$alike[$item['id'] . '-l'],'like',$item['id']) : ''); + $dislike = ((isset($dlike[$item['id']])) ? format_like($dlike[$item['id']],$dlike[$item['id'] . '-l'],'dislike',$item['id']) : ''); + $location = (($item['location']) ? '<a target="map" href="http://maps.google.com/?q=' . urlencode($item['location']) . '">' . $item['location'] . '</a>' : ''); $coord = (($item['coord']) ? '<a target="map" href="http://maps.google.com/?q=' . urlencode($item['coord']) . '">' . $item['coord'] . '</a>' : ''); if($coord) { |