summaryrefslogtreecommitdiff
path: root/www/api
diff options
context:
space:
mode:
authorcweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>2010-01-22 08:51:56 +0000
committercweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>2010-01-22 08:51:56 +0000
commitd2a214968c5f883d8ab8d1bf443fb608df565539 (patch)
tree16f8f6954566441fd511af60413ba985f3990cc9 /www/api
parent8454b37d7aacc6dc9a13d718a80274f6354e9f19 (diff)
downloadsemanticscuttle-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/api')
-rw-r--r--www/api/posts_add.php4
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;