kopia lustrzana https://github.com/friendica/friendica
Avoid non numeric parameter
rodzic
43f0f6bbdc
commit
722083f9ed
|
@ -1353,7 +1353,7 @@ class User
|
|||
*/
|
||||
public static function remove(int $uid)
|
||||
{
|
||||
if (!$uid) {
|
||||
if (empty($uid)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue