]> git.mxchange.org Git - friendica.git/commitdiff
Merge pull request #9635 from MrPetovan/bug/notices
authorMichael Vogel <icarus@dabo.de>
Wed, 9 Dec 2020 05:51:54 +0000 (06:51 +0100)
committerGitHub <noreply@github.com>
Wed, 9 Dec 2020 05:51:54 +0000 (06:51 +0100)
Batch of notice fixes

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":