this is a bit harder than anticipated.

This commit is contained in:
redmatrix 2015-08-31 21:12:37 -07:00
parent d7089ab471
commit 417da13353

View File

@ -557,20 +557,21 @@ function import_post(&$a) {
} }
$objs = $data['obj']; // This needs more work - we also need the term where otype = 6 to link with this, and the terms need to be relocated.
if($objs) { // $objs = $data['obj'];
foreach($objs as $obj) { // if($objs) {
unset($obj['obj_id']); // foreach($objs as $obj) {
$obj['channel'] = $channel['channel_id']; // unset($obj['obj_id']);
// $obj['channel'] = $channel['channel_id'];
dbesc_array($obj); // dbesc_array($obj);
$r = dbq("INSERT INTO obj (`" // $r = dbq("INSERT INTO obj (`"
. implode("`, `", array_keys($obj)) // . implode("`, `", array_keys($obj))
. "`) VALUES ('" // . "`) VALUES ('"
. implode("', '", array_values($obj)) // . implode("', '", array_values($obj))
. "')" ); // . "')" );
} // }
} // }
$saved_notification_flags = notifications_off($channel['channel_id']); $saved_notification_flags = notifications_off($channel['channel_id']);