sforkowany z mirror/friendica
Don't use isset
rodzic
4467dd4972
commit
4673560c55
|
@ -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 '';
|
||||
}
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue