mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-17 04:15:15 +02:00
Fix notices
See https://github.com/friendica/friendica/issues/9749#issuecomment-774666356 and https://github.com/friendica/friendica/issues/9747#issuecomment-785262156
This commit is contained in:
parent
43c6563123
commit
5d61599964
2 changed files with 10 additions and 5 deletions
|
@ -188,12 +188,14 @@ function display_content(App $a, $update = false, $update_uid = 0)
|
|||
if ($update) {
|
||||
$uri_id = $_REQUEST['uri_id'];
|
||||
$item = Post::selectFirst(['uid', 'parent-uri-id'], ['uri-id' => $uri_id, 'uid' => $update_uid]);
|
||||
if ($item['uid'] != 0) {
|
||||
$a->profile = ['uid' => intval($item['uid'])];
|
||||
} else {
|
||||
$a->profile = ['uid' => intval($update_uid)];
|
||||
if (!empty($item)) {
|
||||
if ($item['uid'] != 0) {
|
||||
$a->profile = ['uid' => intval($item['uid'])];
|
||||
} else {
|
||||
$a->profile = ['uid' => intval($update_uid)];
|
||||
}
|
||||
$parent_uri_id = $item['parent-uri-id'];
|
||||
}
|
||||
$parent_uri_id = $item['parent-uri-id'];
|
||||
} else {
|
||||
$uri_id = (($a->argc > 2) ? $a->argv[2] : 0);
|
||||
$parent_uri_id = $uri_id;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue