]> git.mxchange.org Git - friendica.git/commitdiff
Picture import from Diaspora often failed
authorMichael Vogel <icarus@dabo.de>
Mon, 14 Sep 2015 21:14:21 +0000 (23:14 +0200)
committerMichael Vogel <icarus@dabo.de>
Mon, 14 Sep 2015 21:14:21 +0000 (23:14 +0200)
include/dsprphotoq.php

index 7e252cd8433d8a609de29c70f3ccca514e3e8ee2..0d8088d4bd8637c0a9c00787c1518aa04ed065c7 100644 (file)
@@ -28,9 +28,14 @@ function dsprphotoq_run($argv, $argc){
 
        foreach($dphotos as $dphoto) {
 
-               $r = q("SELECT * FROM user WHERE uid = %d",
-                       intval($dphoto['uid'])
-               );
+               $r = array();
+
+               if ($dphoto['uid'] == 0)
+                       $r[0] = array("uid" => 0, "page-flags" => PAGE_FREELOVE);
+               else
+                       $r = q("SELECT * FROM user WHERE uid = %d",
+                               intval($dphoto['uid']));
+
                if(!$r) {
                        logger("diaspora photo queue: user " . $dphoto['uid'] . " not found");
                        return;