aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2017-06-10 10:00:37 +0200
committerMario Vavti <mario@mariovavti.com>2017-06-10 10:00:37 +0200
commitfbb83d831beb633fa620d7e316de7879258e65c3 (patch)
tree95e2d55d1318702022f3574e3b26b5cd3fc7ecdd /include
parent3389df77cc01cb7527623efebc9a640ad1454eb3 (diff)
downloadvolse-hubzilla-fbb83d831beb633fa620d7e316de7879258e65c3.tar.gz
volse-hubzilla-fbb83d831beb633fa620d7e316de7879258e65c3.tar.bz2
volse-hubzilla-fbb83d831beb633fa620d7e316de7879258e65c3.zip
some more innodb mysql scheme adjustments
Diffstat (limited to 'include')
-rwxr-xr-xinclude/items.php5
-rw-r--r--include/text.php2
2 files changed, 2 insertions, 5 deletions
diff --git a/include/items.php b/include/items.php
index 5010dedb2..206a97c42 100755
--- a/include/items.php
+++ b/include/items.php
@@ -4361,10 +4361,7 @@ function sync_an_item($channel_id,$item_id) {
if($r) {
xchan_query($r);
$sync_item = fetch_post_tags($r);
- $rid = q("select * from item_id where iid = %d",
- intval($item_id)
- );
- build_sync_packet($channel_d,array('item' => array(encode_item($sync_item[0],true)),'item_id' => $rid));
+ build_sync_packet($channel_d,array('item' => array(encode_item($sync_item[0],true))));
}
}
diff --git a/include/text.php b/include/text.php
index b8914c44b..d8438b2b1 100644
--- a/include/text.php
+++ b/include/text.php
@@ -2913,7 +2913,7 @@ function pdl_selector($uid, $current='') {
$sql_extra = item_permissions_sql($uid);
- $r = q("select iconfig.*, mid from item_id left join item on iconfig.iid = item.id
+ $r = q("select iconfig.*, mid from iconfig left join item on iconfig.iid = item.id
where item.uid = %d and iconfig.cat = 'system' and iconfig.k = 'PDL' $sql_extra order by v asc",
intval($uid)
);