This fixes the problem of some pages of ProcessMaker not working on PHP 5.1, since there is no json_encode or json_decode native functions on PHP 5.1.
19 lines
482 B
PHP
Executable File
19 lines
482 B
PHP
Executable File
<?php
|
|
G::LoadClass('processMap');
|
|
$oProcessMap = new processMap(new DBConnection);
|
|
|
|
if ( isset($_GET['pid'] ) && !isset($_GET ['action']))
|
|
{
|
|
$rows = $oProcessMap->getExtObjectsPermissions($_GET['pid']);
|
|
}
|
|
|
|
if ( isset($_GET['pid'] )&& isset($_GET['action']) )
|
|
{
|
|
$rows = $oProcessMap->newExtObjectPermission($_GET['pid'],$_GET['action']);
|
|
array_shift($rows);
|
|
}
|
|
$result['totalCount'] = count($rows);
|
|
$result['data'] = $rows;
|
|
print G::json_encode($result);
|
|
?>
|