aboutsummaryrefslogtreecommitdiffstats
path: root/mod/notes.php
diff options
context:
space:
mode:
authormarijus <mario@localhost.localdomain>2013-12-11 11:25:20 +0100
committermarijus <mario@localhost.localdomain>2013-12-11 11:25:20 +0100
commit48610a85dc2954074b2123b090207dcb4a4ab2be (patch)
treebccaee902381bbace09e0c6bf07990e7b5edc200 /mod/notes.php
parentb212da0bf89daf07ccbfcbb3ac745afc4f9bb1dd (diff)
downloadvolse-hubzilla-48610a85dc2954074b2123b090207dcb4a4ab2be.tar.gz
volse-hubzilla-48610a85dc2954074b2123b090207dcb4a4ab2be.tar.bz2
volse-hubzilla-48610a85dc2954074b2123b090207dcb4a4ab2be.zip
make empty notes saveable as well
Diffstat (limited to 'mod/notes.php')
-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
+}