summaryrefslogtreecommitdiff
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
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
-rw-r--r--doc/ChangeLog2
-rw-r--r--www/api/posts_add.php4
2 files changed, 6 insertions, 0 deletions
diff --git a/doc/ChangeLog b/doc/ChangeLog
index 3dbeaed..1626339 100644
--- a/doc/ChangeLog
+++ b/doc/ChangeLog
@@ -21,6 +21,8 @@ ChangeLog for SemantiScuttle
- Fix E_NOTICE when calling alltags.php without any parameter
- Implement request #2833793: Export to avahi config files
- we support zeroconf networking!
+- Fix bug #2936833: api fix: shared=no
+ Patch by fnorder@users.sourceforge.net
0.95.2 - 2010-01-16
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;