mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-08 06:56:29 +02: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
|
private function processGetActions(): void
|
||||||
{
|
{
|
||||||
$action = (string)$this->parameters['action'] ?? '';
|
$action = (string) ($this->parameters['action'] ?? '');
|
||||||
$uid = (int)$this->parameters['uid'] ?? 0;
|
$uid = (int) ($this->parameters['uid'] ?? 0);
|
||||||
|
|
||||||
if ($uid === 0) {
|
if ($uid === 0) {
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -123,8 +123,8 @@ class Blocked extends BaseUsers
|
||||||
*/
|
*/
|
||||||
private function processGetActions(): void
|
private function processGetActions(): void
|
||||||
{
|
{
|
||||||
$action = (string)$this->parameters['action'] ?? '';
|
$action = (string) ($this->parameters['action'] ?? '');
|
||||||
$uid = (int)$this->parameters['uid'] ?? 0;
|
$uid = (int) ($this->parameters['uid'] ?? 0);
|
||||||
|
|
||||||
if ($uid === 0) {
|
if ($uid === 0) {
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -135,8 +135,8 @@ class Index extends BaseUsers
|
||||||
*/
|
*/
|
||||||
private function processGetActions(): void
|
private function processGetActions(): void
|
||||||
{
|
{
|
||||||
$action = (string) $this->parameters['action'] ?? '';
|
$action = (string) ($this->parameters['action'] ?? '');
|
||||||
$uid = (int) $this->parameters['uid'] ?? 0;
|
$uid = (int) ($this->parameters['uid'] ?? 0);
|
||||||
|
|
||||||
if ($uid === 0) {
|
if ($uid === 0) {
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue