1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-13 18:14:26 +02:00

Custom Fields class added.

This commit is contained in:
Cameron
2017-01-24 19:53:40 -08:00
parent 4fe73d43d9
commit 4aa0329ddc
7 changed files with 513 additions and 151 deletions

View File

@@ -4012,6 +4012,11 @@ class e_parser
*/
public function isJSON($text)
{
if(!is_string($text))
{
return false;
}
if(substr($text,0,1) === '{' || substr($text,0,1) === '[') // json
{
$dat = json_decode($text, true);