From 417da13353431ddadafe661803115cf9dd9bf9ca Mon Sep 17 00:00:00 2001 From: redmatrix Date: Mon, 31 Aug 2015 21:12:37 -0700 Subject: this is a bit harder than anticipated. --- mod/import.php | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) (limited to 'mod/import.php') 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']); -- cgit v1.2.3