1
1
Fork 0

Merge pull request #9637 from annando/db-error

Fixes "Unknown column '729' in 'field list'"
This commit is contained in:
Hypolite Petovan 2020-12-09 00:07:04 -05:00 committed by GitHub
commit 2a6715e93f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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