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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user