Skip to content

Commit

Permalink
Fixed a bug where a new user wouldn't see the introduction-project
Browse files Browse the repository at this point in the history
  • Loading branch information
florisweb committed Mar 21, 2020
1 parent 0263ea2 commit 6a167b9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion database/project/getProjectList.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@
require_once __DIR__ . "/../modules/app.php";

$projects = $App->getAllProjects();
if (sizeof($projects) == 0) createWelcomeProject();
if (sizeof($projects) == 0)
{
createWelcomeProject();
$projects = $App->getAllProjects();
}

$returnProjects = array();
for ($i = 0; $i < sizeof($projects); $i++)
Expand Down

0 comments on commit 6a167b9

Please # to comment.