Merge pull request #18200 from seamuslee001/5.29
[civicrm-core.git] / CRM / Utils / System / Backdrop.php
index 111db129c6d85e3acfa70ed8398f1db09e9146bb..d46e56146ce87017b36ab0221d8078019f334e11 100644 (file)
@@ -564,7 +564,7 @@ AND    u.status = 1
       return TRUE;
     }
 
-    $uid = CRM_Utils_Array::value('uid', $params);
+    $uid = $params['uid'] ?? NULL;
     if (!$uid) {
       // Load the user we need to check Backdrop permissions.
       $name = CRM_Utils_Array::value('name', $params, FALSE) ? $params['name'] : trim(CRM_Utils_Array::value('name', $_REQUEST));