fixed another parser error, opps

Signed-off-by: Roland Haeder <roland@mxchange.org>
This commit is contained in:
Roland Häder 2017-03-25 14:57:40 +01:00
parent fccdc63964
commit 0e6b009425
No known key found for this signature in database
GPG key ID: B72F8185C6C7BD78
2 changed files with 6 additions and 4 deletions

View file

@ -21,11 +21,13 @@ function update_gcontact_run(&$argv, &$argc){
$r = q("SELECT * FROM `gcontact` WHERE `id` = %d", intval($contact_id));
if (!$r)
if (!dbm::_is_result($r)) {
return;
}
if (!in_array($r[0]["network"], array(NETWORK_DFRN, NETWORK_DIASPORA, NETWORK_OSTATUS)))
return;
}
$data = probe_url($r[0]["url"]);

View file

@ -638,7 +638,7 @@ function photos_post(App $a) {
}
}
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]');
} else {
$taginfo[] = array($newname, $profile, $notify, null, $str_tags .= '@[url=' . $profile . ']' . $newname . '[/url]');