mirror of
https://github.com/friendica/friendica
synced 2024-12-23 12:00:16 +00:00
Fixes "Unknown column '729' in 'field list'"
This commit is contained in:
parent
7e3196776b
commit
2cb71341b2
1 changed files with 1 additions and 1 deletions
|
@ -151,7 +151,7 @@ class Photo extends BaseModule
|
||||||
|
|
||||||
$photo = MPhoto::selectFirst([], ["scale" => $scale, "uid" => $uid, "profile" => 1]);
|
$photo = MPhoto::selectFirst([], ["scale" => $scale, "uid" => $uid, "profile" => 1]);
|
||||||
if (empty($photo)) {
|
if (empty($photo)) {
|
||||||
$contact = DBA::selectFirst('contact', ['uid' => $uid, 'self' => true]) ?: [];
|
$contact = DBA::selectFirst('contact', [], ['uid' => $uid, 'self' => true]) ?: [];
|
||||||
|
|
||||||
switch($type) {
|
switch($type) {
|
||||||
case "profile":
|
case "profile":
|
||||||
|
|
Loading…
Reference in a new issue