aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib/Enotify.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-04-11 23:05:56 -0700
committerMario Vavti <mario@mariovavti.com>2017-04-19 09:58:31 +0200
commitf174c4fccb92388a8f3ce43472da29ea02f2be35 (patch)
tree052bd645b743dbab1b2b2333c4c42e843e9c8bc0 /Zotlabs/Lib/Enotify.php
parent32eead15425d9e807e5cb85bc706e70f76329de5 (diff)
downloadvolse-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/Lib/Enotify.php')
-rw-r--r--Zotlabs/Lib/Enotify.php5
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']),