diff options
author | Andrew Manning <tamanning@zoho.com> | 2016-06-14 19:56:04 -0400 |
---|---|---|
committer | Andrew Manning <tamanning@zoho.com> | 2016-06-14 19:56:04 -0400 |
commit | eeaafe9f3918661022b465fe0522a3f0e44065b0 (patch) | |
tree | b0e2e941b670419950630a4cfc2b0078da69b502 /include/import.php | |
parent | 6430a232f88ed214997d7704c18aead873094a0f (diff) | |
parent | 0ef2622621867fa197988974b47eff85f20a80e7 (diff) | |
download | volse-hubzilla-eeaafe9f3918661022b465fe0522a3f0e44065b0.tar.gz volse-hubzilla-eeaafe9f3918661022b465fe0522a3f0e44065b0.tar.bz2 volse-hubzilla-eeaafe9f3918661022b465fe0522a3f0e44065b0.zip |
Merge remote-tracking branch 'upstream/dev' into wiki
Diffstat (limited to 'include/import.php')
-rw-r--r-- | include/import.php | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/include/import.php b/include/import.php index be456bfa9..0f52f3ff8 100644 --- a/include/import.php +++ b/include/import.php @@ -624,19 +624,14 @@ function import_item_ids($channel,$itemids) { ); if(! $r) continue; - $z = q("select * from item_id where service = '%s' and sid = '%s' and iid = %d and uid = %d limit 1", + $z = q("select * from iconfig where iconfig.cat = 'system' and iconfig.k = '%s' + and iconfig.v = '%s' and iid = %d limit 1", dbesc($i['service']), dbesc($i['sid']), - intval($r[0]['id']), - intval($channel['channel_id']) + intval($r[0]['id']) ); if(! $z) { - q("insert into item_id (iid,uid,sid,service) values(%d,%d,'%s','%s')", - intval($r[0]['id']), - intval($channel['channel_id']), - dbesc($i['sid']), - dbesc($i['service']) - ); + \Zotlabs\Lib\IConfig::Set($r[0]['id'],'system',$i['service'],$i['sid'],true); } } } |