Skip to content
This repository was archived by the owner on Nov 25, 2020. It is now read-only.

Commit db31374

Browse files
committed
RepositoryFilter is wrong in alert feed if repo is 0
1 parent 58936df commit db31374

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/plugins/feed.sql/class.AJXP_SqlFeedStore.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ public function loadAlerts($userId, $repositoryIdFilter = null)
210210
{
211211
if($this->sqlDriver["password"] == "XXXX") return array();
212212
dibi::connect($this->sqlDriver);
213-
if ($repositoryIdFilter != null) {
213+
if ($repositoryIdFilter !== null) {
214214
$res = dibi::query("SELECT * FROM [ajxp_feed] WHERE [etype] = %s
215215
AND ([repository_id] = %s OR [repository_id] IN (SELECT [uuid] FROM [ajxp_repo] WHERE [parent_uuid]=%s))
216216
AND [user_id] = %s ORDER BY [edate] DESC %lmt", "alert", $repositoryIdFilter, $repositoryIdFilter, $userId, 100);

0 commit comments

Comments
 (0)