diff --git a/src/applications/conpherence/controller/ConpherenceController.php b/src/applications/conpherence/controller/ConpherenceController.php index 764797b26f..600c658911 100644 --- a/src/applications/conpherence/controller/ConpherenceController.php +++ b/src/applications/conpherence/controller/ConpherenceController.php @@ -146,10 +146,10 @@ abstract class ConpherenceController extends PhabricatorController { if (count($transactions) == $too_many) { $last_transaction = end($transactions); unset($transactions[$last_transaction->getID()]); + $oldest_transaction = end($transactions); + $oldest_transaction_id = $oldest_transaction->getID(); } $transactions = array_reverse($transactions); - $oldest_transaction = reset($transactions); - $oldest_transaction_id = $oldest_transaction->getID(); $handles = $conpherence->getHandles(); $rendered_transactions = array(); $engine = id(new PhabricatorMarkupEngine())