]> git.mxchange.org Git - friendica.git/commitdiff
Sorting by "id asc" makes more sense.
authorMichael <heluecht@pirati.ca>
Mon, 23 May 2022 15:31:37 +0000 (15:31 +0000)
committerMichael <heluecht@pirati.ca>
Mon, 23 May 2022 15:31:37 +0000 (15:31 +0000)
src/Console/MoveToAvatarCache.php

index f158c934001141ac7d8e9dbd967f90fa4f2d43f8..18948a0e5db0aaf0cd8bd093f068e0f813764b96 100644 (file)
@@ -87,7 +87,7 @@ HELP;
 
                $count    = 0;
                $total    = $this->dba->count('contact', $condition);
-               $contacts = $this->dba->select('contact', ['id', 'avatar', 'photo', 'uri-id', 'url', 'avatar'], $condition, ['order' => ['id' => true]]);
+               $contacts = $this->dba->select('contact', ['id', 'avatar', 'photo', 'uri-id', 'url', 'avatar'], $condition, ['order' => ['id']]);
                while ($contact = $this->dba->fetch($contacts)) {
                        echo ++$count . '/' . $total . "\t" . $contact['id'] . "\t" . $contact['url'] . "\t";
                        $resourceid = Photo::ridFromURI($contact['photo']);