friendica/src/Protocol
Roland Häder c30ac30f29 Possible fix for #5470 - json_decode() (#5511)
* Possible fix for #5470:
- $data is not an object like stdClass but an array
- newer PHP versions doesn't allow cross-access like following:

  $object['foo'] = 123;
  $array->foo = 123;

- added type-hints for private methods for above cases
- used `if (empty($foo)) instead of just `if ($foo)` preventing some nasty
  E_NOTICE
- added some empty lines for better readability

* Rewrite:
- mixture of object/array was here, causing under newer PHP versions some E_NOTICE
- this has been now finally fixed by converting any `object` type to an
  associative `array`
- also changed `is_object()` to `is_array()`
2018-07-28 01:35:27 -04:00
..
DFRN.php Moved global PAGE_* to Profile class (#5500) 2018-07-27 19:25:57 -04:00
Diaspora.php Moved global PAGE_* to Profile class (#5500) 2018-07-27 19:25:57 -04:00
Email.php Bugfix: Avoid "Class not found" error 2018-03-08 19:58:35 +00:00
Feed.php Rename DBA::is_result to DBA::isResult 2018-07-23 11:04:14 -04:00
OStatus.php Moved global PAGE_* to Profile class (#5500) 2018-07-27 19:25:57 -04:00
PortableContact.php Possible fix for #5470 - json_decode() (#5511) 2018-07-28 01:35:27 -04:00
Salmon.php Review update 2018-01-27 11:13:41 -05:00