Browse Source

stop interpreting null json as string

develop
Robin Thoni 8 years ago
parent
commit
a6c4230c0d
1 changed files with 0 additions and 3 deletions
  1. 0
    3
      src/Utils/Controller/LuRoute.php

+ 0
- 3
src/Utils/Controller/LuRoute.php View File

178
             try
178
             try
179
             {
179
             {
180
                 $json = json_decode($value, true);
180
                 $json = json_decode($value, true);
181
-                if (is_null($json)) {
182
-                    $json = $value . "";
183
-                }
184
                 $typedValue = call_user_func_array(array($class->getName(), "jsonDeserialize"), array($json));
181
                 $typedValue = call_user_func_array(array($class->getName(), "jsonDeserialize"), array($json));
185
             }
182
             }
186
             catch (LuDboDeserializeException $e)
183
             catch (LuDboDeserializeException $e)

Loading…
Cancel
Save