Page MenuHomePhabricator

D10731.diff
No OneTemporary

D10731.diff

diff --git a/src/applications/feed/PhabricatorFeedStoryPublisher.php b/src/applications/feed/PhabricatorFeedStoryPublisher.php
--- a/src/applications/feed/PhabricatorFeedStoryPublisher.php
+++ b/src/applications/feed/PhabricatorFeedStoryPublisher.php
@@ -164,12 +164,15 @@
$mark_read);
}
- queryfx(
- $conn,
- 'INSERT INTO %T (primaryObjectPHID, userPHID, chronologicalKey, hasViewed)
- VALUES %Q',
- $notif->getTableName(),
- implode(', ', $sql));
+ if ($sql) {
+ queryfx(
+ $conn,
+ 'INSERT INTO %T '.
+ '(primaryObjectPHID, userPHID, chronologicalKey, hasViewed) '.
+ 'VALUES %Q',
+ $notif->getTableName(),
+ implode(', ', $sql));
+ }
}
private function sendNotification($chrono_key, array $subscribed_phids) {

File Metadata

Mime Type
text/plain
Expires
May 30 2024, 5:57 AM (5 w, 2 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6277928
Default Alt Text
D10731.diff (822 B)

Event Timeline