From 6817c5d59ad578370a2b60dbdcdba16e43dbac65 Mon Sep 17 00:00:00 2001 From: Mike Macgirvin Date: Mon, 5 Jul 2010 21:39:55 -0700 Subject: lots of work, 2way friends, comments... --- mod/item.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mod/item.php') diff --git a/mod/item.php b/mod/item.php index d413b747f..dbf9d25a8 100644 --- a/mod/item.php +++ b/mod/item.php @@ -23,7 +23,7 @@ function item_post(&$a) { intval($_SESSION['uid'])); if(count($r)) $contact_id = $r[0]['id']; - + } if($_POST['type'] == 'jot') { do { @@ -35,6 +35,7 @@ function item_post(&$a) { $dups = true; } while($dups == true); + $r = q("INSERT INTO `item` (`uid`,`type`,`contact-id`,`created`,`edited`,`hash`,`body`) VALUES( %d, '%s', %d, '%s', '%s', '%s', '%s' )", intval($profile_uid), -- cgit v1.2.3