aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-04-19 22:37:17 -0700
committerFriendika <info@friendika.com>2011-04-19 22:37:17 -0700
commite0e3cc7a7235fe129aefb0f9b01f36f2ba8b99d4 (patch)
tree38fd846bdbc4c0fd1573ada7ee0641a90899df46 /mod
parent309fdce15183c5c2efcbb01dd508080f1438917d (diff)
downloadvolse-hubzilla-e0e3cc7a7235fe129aefb0f9b01f36f2ba8b99d4.tar.gz
volse-hubzilla-e0e3cc7a7235fe129aefb0f9b01f36f2ba8b99d4.tar.bz2
volse-hubzilla-e0e3cc7a7235fe129aefb0f9b01f36f2ba8b99d4.zip
edit post broke with recent checkin
Diffstat (limited to 'mod')
-rw-r--r--mod/editpost.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/mod/editpost.php b/mod/editpost.php
index 16acc76e1..3c92e8bbe 100644
--- a/mod/editpost.php
+++ b/mod/editpost.php
@@ -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'],