aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-04-23 20:28:04 -0700
committerzotlabs <mike@macgirvin.com>2017-04-23 20:28:04 -0700
commitf1c6fd08c462b663a26cf58cfd81591129057c41 (patch)
tree052c35768dc9c076e982d1a20b104906a5c576de /include
parentc2ec3b0bf44847d19d95f568c2b23c50e920eb00 (diff)
downloadvolse-hubzilla-f1c6fd08c462b663a26cf58cfd81591129057c41.tar.gz
volse-hubzilla-f1c6fd08c462b663a26cf58cfd81591129057c41.tar.bz2
volse-hubzilla-f1c6fd08c462b663a26cf58cfd81591129057c41.zip
database upgrade
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 c71e8011d..a4862208e 100755
--- a/include/items.php
+++ b/include/items.php
@@ -4263,10 +4263,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 1a4e2b223..d9ee40fa9 100644
--- a/include/text.php
+++ b/include/text.php
@@ -2930,7 +2930,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)
);