Fix bug #2936833: api fix: shared=no

git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@621 b3834d28-1941-0410-a4f8-b48e95affb8f
This commit is contained in:
cweiske 2010-01-22 08:51:56 +00:00
parent 8454b37d7a
commit d2a214968c
2 changed files with 6 additions and 0 deletions

View File

@ -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

View File

@ -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;