fixed another parser error, opps
Signed-off-by: Roland Haeder <roland@mxchange.org>
This commit is contained in:
parent
fccdc63964
commit
0e6b009425
|
@ -21,11 +21,13 @@ function update_gcontact_run(&$argv, &$argc){
|
||||||
|
|
||||||
$r = q("SELECT * FROM `gcontact` WHERE `id` = %d", intval($contact_id));
|
$r = q("SELECT * FROM `gcontact` WHERE `id` = %d", intval($contact_id));
|
||||||
|
|
||||||
if (!$r)
|
if (!dbm::_is_result($r)) {
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (!in_array($r[0]["network"], array(NETWORK_DFRN, NETWORK_DIASPORA, NETWORK_OSTATUS)))
|
if (!in_array($r[0]["network"], array(NETWORK_DFRN, NETWORK_DIASPORA, NETWORK_OSTATUS)))
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
$data = probe_url($r[0]["url"]);
|
$data = probe_url($r[0]["url"]);
|
||||||
|
|
||||||
|
|
|
@ -638,7 +638,7 @@ function photos_post(App $a) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ($profile) {
|
if ($profile) {
|
||||||
if (substr($notify,0,4) === 'cid:') {
|
if (substr($notify, 0, 4) === 'cid:') {
|
||||||
$taginfo[] = array($newname, $profile, $notify, $r[0], '@[url=' . str_replace(',','%2c',$profile) . ']' . $newname . '[/url]');
|
$taginfo[] = array($newname, $profile, $notify, $r[0], '@[url=' . str_replace(',','%2c',$profile) . ']' . $newname . '[/url]');
|
||||||
} else {
|
} else {
|
||||||
$taginfo[] = array($newname, $profile, $notify, null, $str_tags .= '@[url=' . $profile . ']' . $newname . '[/url]');
|
$taginfo[] = array($newname, $profile, $notify, null, $str_tags .= '@[url=' . $profile . ']' . $newname . '[/url]');
|
||||||
|
@ -1427,8 +1427,8 @@ function photos_content(App $a) {
|
||||||
}
|
}
|
||||||
|
|
||||||
$album_link = 'photos/' . $a->data['user']['nickname'] . '/album/' . bin2hex($ph[0]['album']);
|
$album_link = 'photos/' . $a->data['user']['nickname'] . '/album/' . bin2hex($ph[0]['album']);
|
||||||
$tools = null;
|
$tools = null;
|
||||||
$lock = null;
|
$lock = null;
|
||||||
|
|
||||||
if ($can_post && ($ph[0]['uid'] == $owner_uid)) {
|
if ($can_post && ($ph[0]['uid'] == $owner_uid)) {
|
||||||
$tools = array(
|
$tools = array(
|
||||||
|
|
Loading…
Reference in a new issue