Fixes "Counts::update(): Argument #3 ($vid) must be of type int, null given"
This commit is contained in:
parent
b3e4b9675a
commit
dcb6fa32a1
1 changed files with 1 additions and 1 deletions
|
@ -78,7 +78,7 @@ class Counts
|
||||||
{
|
{
|
||||||
self::update($uri_id, $parent_uri_id, Verb::getID(Activity::POST), Activity::POST);
|
self::update($uri_id, $parent_uri_id, Verb::getID(Activity::POST), Activity::POST);
|
||||||
|
|
||||||
$activities = DBA::p("SELECT `parent-uri-id`, `vid`, `verb`, `body` FROM `post-view` WHERE `thr-parent-id` = ? AND `gravity` = ? GROUP BY `parent-uri-id`, `vid`, `verb`, `body`", $uri_id, Item::GRAVITY_ACTIVITY);
|
$activities = DBA::p("SELECT `parent-uri-id`, `vid`, `verb`, `body` FROM `post-view` WHERE `thr-parent-id` = ? AND `gravity` = ? AND NOT `vid` IS NULL GROUP BY `parent-uri-id`, `vid`, `verb`, `body`", $uri_id, Item::GRAVITY_ACTIVITY);
|
||||||
while ($activity = DBA::fetch($activities)) {
|
while ($activity = DBA::fetch($activities)) {
|
||||||
self::update($uri_id, $activity['parent-uri-id'], $activity['vid'], $activity['verb'], $activity['body']);
|
self::update($uri_id, $activity['parent-uri-id'], $activity['vid'], $activity['verb'], $activity['body']);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue