]> git.mxchange.org Git - friendica.git/commitdiff
fixed another parser error, opps
authorRoland Haeder <roland@mxchange.org>
Sat, 25 Mar 2017 13:57:40 +0000 (14:57 +0100)
committerRoland Haeder <roland@mxchange.org>
Sat, 25 Mar 2017 14:04:07 +0000 (15:04 +0100)
Signed-off-by: Roland Haeder <roland@mxchange.org>
include/update_gcontact.php
mod/photos.php

index 08d4149a716343e6f0ef137cc8cde5b0e0d2476f..2719044a10c00bfb2662bd1acac0598014d8af7d 100644 (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"]);
 
index e4548bb468e3abd1183a27c86d87d13f7e891f33..a54aff326ad7848b24d38aa0f078218e92e32f6e 100644 (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]');
@@ -1427,8 +1427,8 @@ function photos_content(App $a) {
                }
 
                $album_link = 'photos/' . $a->data['user']['nickname'] . '/album/' . bin2hex($ph[0]['album']);
-               $tools = null;
-               $lock = null;
+               $tools = null;
+               $lock = null;
 
                if ($can_post && ($ph[0]['uid'] == $owner_uid)) {
                        $tools = array(