mirror of
https://github.com/friendica/friendica
synced 2024-11-10 04:22:54 +00:00
Don't use isset
This commit is contained in:
parent
4467dd4972
commit
4673560c55
1 changed files with 1 additions and 1 deletions
|
@ -107,7 +107,7 @@ class Item extends BaseObject
|
|||
*/
|
||||
private static function indexToActivity($index)
|
||||
{
|
||||
if (!isset(self::ACTIVITIES[$index])) {
|
||||
if (!is_int($index) || !array_key_exists($index, self::ACTIVITIES)) {
|
||||
return '';
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue