mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-17 02:05:19 +02:00
edit post broke with recent checkin
This commit is contained in:
parent
309fdce151
commit
e0e3cc7a72
2 changed files with 4 additions and 4 deletions
|
@ -18,12 +18,12 @@ function editpost_content(&$a) {
|
|||
return;
|
||||
}
|
||||
|
||||
$r = q("SELECT * FROM `item` WHERE `id` = %d AND `uid` = %d LIMIT 1",
|
||||
$itm = q("SELECT * FROM `item` WHERE `id` = %d AND `uid` = %d LIMIT 1",
|
||||
intval($post_id),
|
||||
intval(local_user())
|
||||
);
|
||||
|
||||
if(! count($r)) {
|
||||
if(! count($itm)) {
|
||||
notice( t('Item not found') . EOL);
|
||||
return;
|
||||
}
|
||||
|
@ -94,7 +94,7 @@ function editpost_content(&$a) {
|
|||
'$noloc' => t('Clear browser location'),
|
||||
'$wait' => t('Please wait'),
|
||||
'$permset' => t('Permission settings'),
|
||||
'$content' => $r[0]['body'],
|
||||
'$content' => $itm[0]['body'],
|
||||
'$post_id' => $post_id,
|
||||
'$baseurl' => $a->get_baseurl(),
|
||||
'$defloc' => $a->user['default-location'],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue