* Fix bug#19711.
This commit is contained in:
@@ -2403,15 +2403,13 @@ EOD;
|
||||
|
||||
/* Limited execution. */
|
||||
$limitedExecution = false;
|
||||
if(!empty($module) && $module == 'task' && !empty($object->execution) or
|
||||
!empty($module) && $module == 'execution' && !empty($object->id) or
|
||||
!empty($module) && $module == 'story' && !empty($object->execution)
|
||||
if(!empty($module) && in_array($module, array('task', 'story')) && !empty($object->execution) or
|
||||
!empty($module) && $module == 'execution' && !empty($object->id)
|
||||
)
|
||||
{
|
||||
$objectID = '';
|
||||
if($module == 'execution' and !empty($object->id)) $objectID = $object->id;
|
||||
if($module == 'task' and !empty($object->execution))$objectID = $object->execution;
|
||||
if($module == 'story' and !empty($object->execution))$objectID = $object->execution;
|
||||
if($module == 'execution' and !empty($object->id)) $objectID = $object->id;
|
||||
if(in_array($module, array('task', 'story')) and !empty($object->execution)) $objectID = $object->execution;
|
||||
|
||||
$limitedExecutions = !empty($_SESSION['limitedExecutions']) ? $_SESSION['limitedExecutions'] : '';
|
||||
if($objectID and strpos(",{$limitedExecutions},", ",$objectID,") !== false) $limitedExecution = true;
|
||||
|
||||
Reference in New Issue
Block a user