1
1
Fork 0

Fixes "Unknown column '729' in 'field list'"

This commit is contained in:
Michael 2020-12-08 21:23:10 +00:00
parent 7e3196776b
commit 2cb71341b2

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