Skip to content

Commit

Permalink
&& in queries is depricated; using AND instead
Browse files Browse the repository at this point in the history
  • Loading branch information
phulstaert committed Aug 23, 2022
1 parent 3f3ca1c commit 49a62da
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/domain/projects/repositories/class.projects.php
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ public function getUsersAssignedToProject($id)
zp_user.profileId
FROM zp_relationuserproject
LEFT JOIN zp_user ON zp_relationuserproject.userId = zp_user.id
WHERE zp_relationuserproject.projectId = :projectId && zp_user.id IS NOT NULL
WHERE zp_relationuserproject.projectId = :projectId AND zp_user.id IS NOT NULL
ORDER BY zp_user.lastname";

$stmn = $this->db->database->prepare($query);
Expand Down Expand Up @@ -900,4 +900,4 @@ public function addProjectRelation($userId, $projectId, $projectRole)

}

}
}
4 changes: 2 additions & 2 deletions src/domain/sprints/repositories/class.sprints.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public function getCurrentSprint($projectId)
zp_sprints.endDate
FROM zp_sprints
WHERE zp_sprints.projectId = :id
AND zp_sprints.startDate < NOW() && zp_sprints.endDate > NOW() ORDER BY zp_sprints.startDate LIMIT 1";
AND zp_sprints.startDate < NOW() AND zp_sprints.endDate > NOW() ORDER BY zp_sprints.startDate LIMIT 1";

$stmn = $this->db->database->prepare($query);
$stmn->bindValue(':id', $projectId, PDO::PARAM_INT);
Expand Down Expand Up @@ -242,4 +242,4 @@ public function delSprint($id)

}

}?>
}

0 comments on commit 49a62da

Please sign in to comment.