aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-04-11 23:05:56 -0700
committerzotlabs <mike@macgirvin.com>2017-04-11 23:05:56 -0700
commit63dd6ad01a173d640e5c49dede1246dba840aa74 (patch)
treea7addd4840e6c81c297aa5257413a5cf225044ff /Zotlabs
parent940534e3031d8f57784d47f9c7c6d7e80a256dd4 (diff)
downloadvolse-hubzilla-63dd6ad01a173d640e5c49dede1246dba840aa74.tar.gz
volse-hubzilla-63dd6ad01a173d640e5c49dede1246dba840aa74.tar.bz2
volse-hubzilla-63dd6ad01a173d640e5c49dede1246dba840aa74.zip
don't allow any null fields in notify creation
Diffstat (limited to 'Zotlabs')
-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']),