diff options
author | cweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f> | 2010-01-22 08:51:56 +0000 |
---|---|---|
committer | cweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f> | 2010-01-22 08:51:56 +0000 |
commit | d2a214968c5f883d8ab8d1bf443fb608df565539 (patch) | |
tree | 16f8f6954566441fd511af60413ba985f3990cc9 /www | |
parent | 8454b37d7aacc6dc9a13d718a80274f6354e9f19 (diff) | |
download | semanticscuttle-d2a214968c5f883d8ab8d1bf443fb608df565539.tar.gz semanticscuttle-d2a214968c5f883d8ab8d1bf443fb608df565539.tar.bz2 |
Fix bug #2936833: api fix: shared=no
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@621 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'www')
-rw-r--r-- | www/api/posts_add.php | 4 |
1 files changed, 4 insertions, 0 deletions
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; |