more zcard tweaks

This commit is contained in:
redmatrix
2016-02-02 19:39:47 -08:00
parent 06dcaaa821
commit a7ed50ecd4
3 changed files with 8 additions and 4 deletions

View File

@@ -1829,6 +1829,10 @@ function get_zcard($channel,$observer_hash = '',$args = array()) {
$cover = $r[0];
$cover['href'] = z_root() . '/photo/' . $r[0]['resource_id'] . '-' . $r[0]['scale'];
}
else {
// @fixme remove this when we have a fallback cover photo and use that instead.
return;
}
$o .= replace_macros(get_markup_template('zcard.tpl'),array(
'$scale' => $scale,