]> git.mxchange.org Git - friendica-addons.git/blobdiff - fromgplus/fromgplus.php
[xmpp] Fixes: (#668)
[friendica-addons.git] / fromgplus / fromgplus.php
index 5dfac50c50ab5f9608b813cf2efb35a9b5522e59..0f208037a0efe3b18846256c2869e991a7af0d67 100644 (file)
@@ -169,7 +169,6 @@ function fromgplus_post($a, $uid, $source, $body, $location, $coord, $id) {
        $_SESSION['uid'] = $uid;
 
        unset($_REQUEST);
-       $_REQUEST['type'] = 'wall';
        $_REQUEST['api_source'] = true;
 
        $_REQUEST['profile_uid'] = $uid;
@@ -455,7 +454,7 @@ function fromgplus_fetch($a, $uid) {
 
        $lastdate = 0;
 
-       if (!is_array($activities->items))
+       if (empty($activities->items))
                return;
 
        $reversed = array_reverse($activities->items);