From d2a214968c5f883d8ab8d1bf443fb608df565539 Mon Sep 17 00:00:00 2001 From: cweiske Date: Fri, 22 Jan 2010 08:51:56 +0000 Subject: Fix bug #2936833: api fix: shared=no git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@621 b3834d28-1941-0410-a4f8-b48e95affb8f --- www/api/posts_add.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'www/api') diff --git a/www/api/posts_add.php b/www/api/posts_add.php index 441965c..73beee0 100644 --- a/www/api/posts_add.php +++ b/www/api/posts_add.php @@ -65,6 +65,10 @@ if (isset($_REQUEST['status'])) { } } +if (isset($_REQUEST['shared']) && (trim($_REQUEST['shared']) == 'no')) { + $status = 2; +} + // Error out if there's no address or description if (is_null($url) || is_null($description)) { $added = false; -- cgit v1.2.3-54-g00ecf