@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix RuntimeException: min(): Array must contain at least one element

Summary:
Make sure that `$epochs[]` is never empty but contains `0` so `min($epochs)` will not complain.

Closes T15623

Test Plan: Carefully read the code (as I am unaware of reproduction steps).

Reviewers: O1 Blessed Committers, avivey

Reviewed By: O1 Blessed Committers, avivey

Subscribers: tobiaswiese, valerio.bozzolan, Matthew, Cigaryno

Maniphest Tasks: T15623

Differential Revision: https://we.phorge.it/D25417

+4
+4
src/applications/diffusion/controller/DiffusionBlameController.php
··· 198 198 $map[$identifier] = $data; 199 199 } 200 200 201 + if (empty($epochs)) { 202 + $epochs[] = 0; 203 + } 204 + 201 205 $epoch_min = min($epochs); 202 206 $epoch_max = max($epochs); 203 207