mirror of
https://github.com/friendica/friendica
synced 2025-02-15 03:34:01 +00:00
Prioritize coalescing parameters in Moderation\Users\*->processGetActions
↪ This was causing missing array index warnings when the casting took precedence
This commit is contained in:
parent
f1dfa63764
commit
e6f4df3442
3 changed files with 6 additions and 6 deletions
|
@ -124,8 +124,8 @@ class Active extends BaseUsers
|
|||
*/
|
||||
private function processGetActions(): void
|
||||
{
|
||||
$action = (string)$this->parameters['action'] ?? '';
|
||||
$uid = (int)$this->parameters['uid'] ?? 0;
|
||||
$action = (string) ($this->parameters['action'] ?? '');
|
||||
$uid = (int) ($this->parameters['uid'] ?? 0);
|
||||
|
||||
if ($uid === 0) {
|
||||
return;
|
||||
|
|
|
@ -123,8 +123,8 @@ class Blocked extends BaseUsers
|
|||
*/
|
||||
private function processGetActions(): void
|
||||
{
|
||||
$action = (string)$this->parameters['action'] ?? '';
|
||||
$uid = (int)$this->parameters['uid'] ?? 0;
|
||||
$action = (string) ($this->parameters['action'] ?? '');
|
||||
$uid = (int) ($this->parameters['uid'] ?? 0);
|
||||
|
||||
if ($uid === 0) {
|
||||
return;
|
||||
|
|
|
@ -135,8 +135,8 @@ class Index extends BaseUsers
|
|||
*/
|
||||
private function processGetActions(): void
|
||||
{
|
||||
$action = (string) $this->parameters['action'] ?? '';
|
||||
$uid = (int) $this->parameters['uid'] ?? 0;
|
||||
$action = (string) ($this->parameters['action'] ?? '');
|
||||
$uid = (int) ($this->parameters['uid'] ?? 0);
|
||||
|
||||
if ($uid === 0) {
|
||||
return;
|
||||
|
|
Loading…
Add table
Reference in a new issue