Merge pull request #2884 from tobiasd/20161103-fixnotifications

missing placeholder for name_cache value
This commit is contained in:
rabuzarus 2016-11-03 14:29:34 +01:00 committed by GitHub
commit 8de5d6d198

View file

@ -441,7 +441,7 @@ function notification($params) {
// create notification entry in DB
$r = q("INSERT INTO `notify` (`hash`, `name`, `url`, `photo`, `date`, `uid`, `link`, `iid`, `parent`, `type`, `verb`, `otype`, `name_cache`)
values('%s', '%s', '%s', '%s', '%s', %d, '%s', %d, %d, %d, '%s', '%s')",
values('%s', '%s', '%s', '%s', '%s', %d, '%s', %d, %d, %d, '%s', '%s', '%s')",
dbesc($datarray['hash']),
dbesc($datarray['name']),
dbesc($datarray['url']),
@ -805,4 +805,4 @@ function format_notification_message($name, $message) {
}
return $message;
}
}