diff options
author | zotlabs <mike@macgirvin.com> | 2017-04-11 23:05:56 -0700 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2017-04-19 09:58:31 +0200 |
commit | f174c4fccb92388a8f3ce43472da29ea02f2be35 (patch) | |
tree | 052bd645b743dbab1b2b2333c4c42e843e9c8bc0 /Zotlabs | |
parent | 32eead15425d9e807e5cb85bc706e70f76329de5 (diff) | |
download | volse-hubzilla-f174c4fccb92388a8f3ce43472da29ea02f2be35.tar.gz volse-hubzilla-f174c4fccb92388a8f3ce43472da29ea02f2be35.tar.bz2 volse-hubzilla-f174c4fccb92388a8f3ce43472da29ea02f2be35.zip |
don't allow any null fields in notify creation
Diffstat (limited to 'Zotlabs')
-rw-r--r-- | Zotlabs/Lib/Enotify.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Zotlabs/Lib/Enotify.php b/Zotlabs/Lib/Enotify.php index 5db5fb42d..a10675a87 100644 --- a/Zotlabs/Lib/Enotify.php +++ b/Zotlabs/Lib/Enotify.php @@ -495,13 +495,14 @@ class Enotify { } } - $r = q("insert into notify (hash,xname,url,photo,created,aid,uid,link,parent,seen,ntype,verb,otype) - values('%s','%s','%s','%s','%s',%d,%d,'%s','%s',%d,%d,'%s','%s')", + $r = q("insert into notify (hash,xname,url,photo,created,msg,aid,uid,link,parent,seen,ntype,verb,otype) + values('%s','%s','%s','%s','%s','%s',%d,%d,'%s','%s',%d,%d,'%s','%s')", dbesc($datarray['hash']), dbesc($datarray['xname']), dbesc($datarray['url']), dbesc($datarray['photo']), dbesc($datarray['created']), + dbesc(''), // will fill this in below after the record is created intval($datarray['aid']), intval($datarray['uid']), dbesc($datarray['link']), |