Skip to content

Commit

Permalink
added missing git remote
Browse files Browse the repository at this point in the history
  • Loading branch information
Atlasfreak committed Nov 24, 2022
1 parent a5ea7c0 commit 840d714
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions admin/home.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?php
use Atlasfreak\Eventmanager\Update;
use Atlasfreak\Eventmanager\CommandNotFound;

basename($_SERVER['PHP_SELF']) == basename(__FILE__) && die();

require("classes/Update.php");
Expand All @@ -23,7 +24,7 @@
$data_timewindows_ids = $query_timewindows_ids->fetchAll(PDO::FETCH_COLUMN, 0);
$max_participants = 0;
$participants = 0;
if($query_timewindows_ids->rowCount() > 0){
if ($query_timewindows_ids->rowCount() > 0) {
$sql_max_participants = "SELECT CASE WHEN SUM(maxTeilnehmer) IS NULL THEN 0 ELSE SUM(maxTeilnehmer) END as maxTeilnehmer FROM zeitfenster WHERE FIND_IN_SET(tagID, ?)";
$query_max_participants = $db->query($sql_max_participants, $ids_days);
$max_participants = (int) $query_max_participants->fetch()["maxTeilnehmer"];
Expand All @@ -37,7 +38,7 @@
array_push($events, $event);
}

$api = new Update();
$api = new Update(CONFIG_DATA["updater"]["git_remote"]);
try {
[$version, $new] = $api->check_version();
} catch (CommandNotFound $th) {
Expand Down

0 comments on commit 840d714

Please sign in to comment.