aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-12-11 15:35:54 -0800
committerfriendica <info@friendica.com>2013-12-11 15:35:54 -0800
commit06c81e189f031a74c54aa14b1f29c93379e7cf3c (patch)
treea9ef109569e9bc55262ccfce7ebd326add474a71 /mod
parentd93ba783f54cf862bd91b231b7a9f7a19c657675 (diff)
parent1fa4133d430d2cb2753a9fd7e6bf9bfcdc35659b (diff)
downloadvolse-hubzilla-06c81e189f031a74c54aa14b1f29c93379e7cf3c.tar.gz
volse-hubzilla-06c81e189f031a74c54aa14b1f29c93379e7cf3c.tar.bz2
volse-hubzilla-06c81e189f031a74c54aa14b1f29c93379e7cf3c.zip
Merge pull request #239 from git-marijus/master
make empty notes saveable as well
Diffstat (limited to 'mod')
-rw-r--r--mod/notes.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/mod/notes.php b/mod/notes.php
index ce3460aa4..468b4ef26 100644
--- a/mod/notes.php
+++ b/mod/notes.php
@@ -6,11 +6,11 @@ function notes_init(&$a) {
logger('mod_notes: ' . print_r($_REQUEST,true));
$ret = array('success' => true);
- if($_REQUEST['note_text']) {
+ if($_REQUEST['note_text'] || $_REQUEST['note_text'] == '') {
$body = escape_tags($_REQUEST['note_text']);
set_pconfig(local_user(),'notes','text',$body);
}
logger('notes saved.');
json_return_and_die($ret);
-} \ No newline at end of file
+}