make empty notes saveable as well
This commit is contained in:
parent
b212da0bf8
commit
48610a85dc
@ -6,11 +6,11 @@ function notes_init(&$a) {
|
|||||||
logger('mod_notes: ' . print_r($_REQUEST,true));
|
logger('mod_notes: ' . print_r($_REQUEST,true));
|
||||||
|
|
||||||
$ret = array('success' => true);
|
$ret = array('success' => true);
|
||||||
if($_REQUEST['note_text']) {
|
if($_REQUEST['note_text'] || $_REQUEST['note_text'] == '') {
|
||||||
$body = escape_tags($_REQUEST['note_text']);
|
$body = escape_tags($_REQUEST['note_text']);
|
||||||
set_pconfig(local_user(),'notes','text',$body);
|
set_pconfig(local_user(),'notes','text',$body);
|
||||||
}
|
}
|
||||||
logger('notes saved.');
|
logger('notes saved.');
|
||||||
json_return_and_die($ret);
|
json_return_and_die($ret);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user