mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-25 20:31:31 +02:00
fix PHP 8.0 TypeError: strpos(): Argument #1 ($haystack) must be of type string, array given
This commit is contained in:
parent
2d7da57e60
commit
03835c0247
@ -403,8 +403,8 @@ class History
|
|||||||
*/
|
*/
|
||||||
public static function needs_diff($name, $value)
|
public static function needs_diff($name, $value)
|
||||||
{
|
{
|
||||||
// No diff on encrypted content
|
// No diff on arrays or encrypted content
|
||||||
if(strpos($value, static::BEGIN_PGP) == 0 && strpos($value, static::END_PGP) !== FALSE)
|
if (is_array($value) || strpos($value, static::BEGIN_PGP) == 0 && strpos($value, static::END_PGP) !== FALSE)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user