]> git.mxchange.org Git - friendica.git/commitdiff
Merge pull request #9637 from annando/db-error
authorHypolite Petovan <hypolite@mrpetovan.com>
Wed, 9 Dec 2020 05:07:04 +0000 (00:07 -0500)
committerGitHub <noreply@github.com>
Wed, 9 Dec 2020 05:07:04 +0000 (00:07 -0500)
Fixes "Unknown column '729' in 'field list'"

src/Module/Photo.php

index a10eeefd5225bc5f8c8413fbe3cee216949f8544..165391cd3ca2aa67cfacbde652657a8488ea214b 100644 (file)
@@ -151,7 +151,7 @@ class Photo extends BaseModule
 
                $photo = MPhoto::selectFirst([], ["scale" => $scale, "uid" => $uid, "profile" => 1]);
                if (empty($photo)) {
-                       $contact = DBA::selectFirst('contact', ['uid' => $uid, 'self' => true]) ?: [];
+                       $contact = DBA::selectFirst('contact', [], ['uid' => $uid, 'self' => true]) ?: [];
 
                        switch($type) {
                                case "profile":