Merge pull request #239 from git-marijus/master

make empty notes saveable as well
This commit is contained in:
friendica
2013-12-11 15:35:54 -08:00
9 changed files with 165 additions and 124 deletions

View File

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