diff options
author | Florian Larysch | 2017-10-06 13:33:36 +0200 |
---|---|---|
committer | Florian Larysch | 2017-10-06 13:33:36 +0200 |
commit | 12f16414b7f05f7bd8fe51528ac5ef5adabc1caf (patch) | |
tree | 7aa7e4f083c1a88140a18b4ed715e1fb47a3a4b6 | |
parent | d816bfca5d17f5c541dc638095b34bae02682a1d (diff) |
downloader: handle conferences without end date
Some conferences might not have an end date, but might be disabled in
their config nonetheless. This leads to a situation which causes a null
dereference in the downloader code.
Fix this by not downloading data for conferences in such a state, as it
stands to reason that we don't care about them anymore if we explicitly
disabled them.
Diffstat (limited to '')
-rw-r--r-- | command/download.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/command/download.php b/command/download.php index 2cf997e..d761ff3 100644 --- a/command/download.php +++ b/command/download.php @@ -36,6 +36,9 @@ if(isset($conf['MAX_CONFERENCE_AGE'])) return true; } + if($conference->endsAt() == null) + return false; + $isBefore = $conference->endsAt() < $conferencesAfter; if($isBefore) { |