| @@ 1781-1793 (lines=13) @@ | ||
| 1778 | } |
|
| 1779 | } |
|
| 1780 | ||
| 1781 | if (!function_exists('isJson')) { |
|
| 1782 | /** |
|
| 1783 | * @param string $string |
|
| 1784 | * @param bool $returnData |
|
| 1785 | * @return bool|mixed |
|
| 1786 | */ |
|
| 1787 | function isJson($string, $returnData = false) |
|
| 1788 | { |
|
| 1789 | $data = json_decode($string, true); |
|
| 1790 | ||
| 1791 | return (json_last_error() == JSON_ERROR_NONE) ? ($returnData ? $data : true) : false; |
|
| 1792 | } |
|
| 1793 | } |
|
| 1794 | ||
| 1795 | if (!function_exists('getCreateDbCategory')) { |
|
| 1796 | /** |
|
| @@ 668-680 (lines=13) @@ | ||
| 665 | } |
|
| 666 | } |
|
| 667 | ||
| 668 | if (!function_exists('isJson')) { |
|
| 669 | /** |
|
| 670 | * @param string $string |
|
| 671 | * @param bool $returnData |
|
| 672 | * @return bool|mixed |
|
| 673 | */ |
|
| 674 | function isJson($string, $returnData = false) |
|
| 675 | { |
|
| 676 | $data = json_decode($string, true); |
|
| 677 | ||
| 678 | return (json_last_error() == JSON_ERROR_NONE) ? ($returnData ? $data : true) : false; |
|
| 679 | } |
|
| 680 | } |
|
| 681 | ||
| 682 | if (!function_exists('getCreateDbCategory')) { |
|
| 683 | /** |
|