Projects/nettsiden-old
Projects
/
nettsiden-old
Archived
8
0
Fork 0

Disallow visiting unexisting project pages

This commit is contained in:
Peder Bergebakken Sundt 2018-08-12 03:43:50 +02:00
parent 5ef3bc68a0
commit 307eba4218
2 changed files with 7 additions and 0 deletions

View File

@ -36,6 +36,9 @@ class ProjectManager{
$statement->execute();
$dbProj = $statement->fetch();
if (!$dbProj) {
return false;
}
$project = new Project(
$dbProj['id'],
$dbProj['name'],

View File

@ -15,6 +15,10 @@ $attrs = $as->getAttributes();
$projectManager = new \pvv\side\ProjectManager($pdo);
$project = $projectManager->getByID($projectID);
if (!$project) {
echo ":^)";
exit();
}
$members = $projectManager->getProjectMembers($projectID);
$is_owner = False;