diff options
author | marijus <mario@localhost.localdomain> | 2013-12-11 11:25:20 +0100 |
---|---|---|
committer | marijus <mario@localhost.localdomain> | 2013-12-11 11:25:20 +0100 |
commit | 48610a85dc2954074b2123b090207dcb4a4ab2be (patch) | |
tree | bccaee902381bbace09e0c6bf07990e7b5edc200 | |
parent | b212da0bf89daf07ccbfcbb3ac745afc4f9bb1dd (diff) | |
download | volse-hubzilla-48610a85dc2954074b2123b090207dcb4a4ab2be.tar.gz volse-hubzilla-48610a85dc2954074b2123b090207dcb4a4ab2be.tar.bz2 volse-hubzilla-48610a85dc2954074b2123b090207dcb4a4ab2be.zip |
make empty notes saveable as well
-rw-r--r-- | mod/notes.php | 4 |
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 +} |