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

Commit

Permalink
RepositoryFilter is wrong in alert feed if repo is 0
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed Oct 23, 2015
1 parent 58936df commit db31374
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/plugins/feed.sql/class.AJXP_SqlFeedStore.php
Expand Up @@ -210,7 +210,7 @@ public function loadAlerts($userId, $repositoryIdFilter = null)
{
if($this->sqlDriver["password"] == "XXXX") return array();
dibi::connect($this->sqlDriver);
if ($repositoryIdFilter != null) {
if ($repositoryIdFilter !== null) {
$res = dibi::query("SELECT * FROM [ajxp_feed] WHERE [etype] = %s
AND ([repository_id] = %s OR [repository_id] IN (SELECT [uuid] FROM [ajxp_repo] WHERE [parent_uuid]=%s))
AND [user_id] = %s ORDER BY [edate] DESC %lmt", "alert", $repositoryIdFilter, $repositoryIdFilter, $userId, 100);
Expand Down

0 comments on commit db31374

Please sign in to comment.