]> git.mxchange.org Git - friendica.git/commitdiff
Avoid non numeric parameter
authorMichael <heluecht@pirati.ca>
Fri, 29 Jan 2021 23:41:42 +0000 (23:41 +0000)
committerMichael <heluecht@pirati.ca>
Fri, 29 Jan 2021 23:41:42 +0000 (23:41 +0000)
src/Model/User.php
src/Worker/Notifier.php

index 41e612ac803c99af2f8dc54902b710503989e7b2..7204fd0ac8675600abf8d42293882074eade241d 100644 (file)
@@ -1353,7 +1353,7 @@ class User
         */
        public static function remove(int $uid)
        {
-               if (!$uid) {
+               if (empty($uid)) {
                        return false;
                }
 
index 36081455ca6fdc1ff92fa59b10afd22d61817549..4044e3769ad85ffd53e560ec7147f02f89857502 100644 (file)
@@ -53,7 +53,7 @@ use Friendica\Protocol\Salmon;
 
 class Notifier
 {
-       public static function execute($cmd, $target_id)
+       public static function execute(string $cmd, int $target_id)
        {
                $a = DI::app();