mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 08:45:12 +02:00
weird json
This commit is contained in:
parent
eaf10f7d6e
commit
55392bac47
@ -2395,12 +2395,9 @@ sub p_decode_json {
|
|||||||
if ($JSON::VERSION > 2.90) {
|
if ($JSON::VERSION > 2.90) {
|
||||||
# Initialize JSON manager.
|
# Initialize JSON manager.
|
||||||
my $json = JSON->new->allow_nonref;
|
my $json = JSON->new->allow_nonref;
|
||||||
|
|
||||||
$decoded_data = $json->decode($data);
|
$decoded_data = $json->decode($data);
|
||||||
} else {
|
} else {
|
||||||
if (!is_empty($decoded_data)) {
|
|
||||||
$decoded_data = decode_json($data);
|
$decoded_data = decode_json($data);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return $decoded_data;
|
return $decoded_data;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user