Reformat wrong expansion

This commit is contained in:
Michael 2018-05-03 20:49:32 +00:00
parent 321a36d4db
commit d52b226a6e

View file

@ -88,11 +88,11 @@ class PostUpdate
$r = q($query1.$query2.$query3." ORDER BY `item`.`id` LIMIT 1000,1",
intval($start_id), intval($end_id),
dbesc(NETWORK_DFRN), dbesc(NETWORK_DIASPORA), dbesc(NETWORK_OSTATUS));
if ($r)
if ($r) {
$pos_id = $r[0]["id"];
else
} else {
$pos_id = $end_id;
}
logger("Progress: Start: ".$start_id." position: ".$pos_id." end: ".$end_id, LOGGER_DEBUG);
q("UPDATE `item` ".$query2." SET `item`.`global` = 1 ".$query3,
@ -165,12 +165,12 @@ class PostUpdate
$author_id = Contact::getIdForURL($item["author-link"]);
$owner_id = Contact::getIdForURL($item["owner-link"]);
if ($author_id == 0)
if ($author_id == 0) {
$author_id = -1;
if ($owner_id == 0)
}
if ($owner_id == 0) {
$owner_id = -1;
}
dba::update('item', ['author-id' => $author_id, 'owner-id' => $owner_id], ['uid' => $item['uid'], 'author-link' => $item['author-link'], 'owner-link' => $item['owner-link'], 'author-id' => 0, 'owner-id' => 0]);
}