diff options
author | redmatrix <redmatrix@redmatrix.me> | 2015-08-31 21:12:37 -0700 |
---|---|---|
committer | redmatrix <redmatrix@redmatrix.me> | 2015-08-31 21:12:37 -0700 |
commit | 417da13353431ddadafe661803115cf9dd9bf9ca (patch) | |
tree | 30f0e224e5584ad37ef01d364b1a991c6c65bfda /mod/import.php | |
parent | d7089ab471d446453f41ba1311b3d7186d86ff4c (diff) | |
download | volse-hubzilla-417da13353431ddadafe661803115cf9dd9bf9ca.tar.gz volse-hubzilla-417da13353431ddadafe661803115cf9dd9bf9ca.tar.bz2 volse-hubzilla-417da13353431ddadafe661803115cf9dd9bf9ca.zip |
this is a bit harder than anticipated.
Diffstat (limited to 'mod/import.php')
-rw-r--r-- | mod/import.php | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/mod/import.php b/mod/import.php index fb04a021a..0c5ec2a4c 100644 --- a/mod/import.php +++ b/mod/import.php @@ -557,20 +557,21 @@ function import_post(&$a) { } - $objs = $data['obj']; - if($objs) { - foreach($objs as $obj) { - unset($obj['obj_id']); - $obj['channel'] = $channel['channel_id']; - - dbesc_array($obj); - $r = dbq("INSERT INTO obj (`" - . implode("`, `", array_keys($obj)) - . "`) VALUES ('" - . implode("', '", array_values($obj)) - . "')" ); - } - } +// This needs more work - we also need the term where otype = 6 to link with this, and the terms need to be relocated. +// $objs = $data['obj']; +// if($objs) { +// foreach($objs as $obj) { +// unset($obj['obj_id']); +// $obj['channel'] = $channel['channel_id']; + +// dbesc_array($obj); +// $r = dbq("INSERT INTO obj (`" +// . implode("`, `", array_keys($obj)) +// . "`) VALUES ('" +// . implode("', '", array_values($obj)) +// . "')" ); +// } +// } $saved_notification_flags = notifications_off($channel['channel_id']); |