Start to find the ones not set
authorEileen McNaughton <emcnaughton@wikimedia.org>
Wed, 17 May 2023 08:05:11 +0000 (20:05 +1200)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Mon, 4 Sep 2023 20:59:51 +0000 (08:59 +1200)
CRM/Core/Action.php

index cb6ae64fc8dc7b40782606e45c0638f5657e91b7..faa335682fc84fe215e54a14411702316c99a8cc 100644 (file)
@@ -315,7 +315,7 @@ class CRM_Core_Action {
     $url = [];
 
     usort($seqLinks, static function ($a, $b) {
-      return (int) ((int) ($a['weight'] ?? 0) > (int) ($b['weight'] ?? 0));
+      return (int) ((int) ($a['weight']) > (int) ($b['weight']));
     });
 
     foreach ($seqLinks as $i => $link) {