mirror of
https://github.com/friendica/friendica
synced 2024-11-10 03:02:54 +00:00
language and static
This commit is contained in:
parent
d772331b91
commit
41251458a0
1 changed files with 2 additions and 2 deletions
|
@ -31,14 +31,14 @@ class SerializeUtil
|
|||
/**
|
||||
* Checks if the value needs to get unserialized and returns the unserialized value
|
||||
*
|
||||
* @param mixed $value A possible serialized value
|
||||
* @param mixed $value A possibly serialized value
|
||||
*
|
||||
* @return mixed The unserialized value
|
||||
*/
|
||||
public static function maybeUnserialize($value)
|
||||
{
|
||||
// This checks for possible multiple serialized values
|
||||
while (SerializeUtil::isSerialized($value)) {
|
||||
while (static::isSerialized($value)) {
|
||||
$oldValue = $value;
|
||||
$value = @unserialize($value);
|
||||
|
||||
|
|
Loading…
Reference in a new issue