isForkable fix
This commit is contained in:
parent
07d4eb31c7
commit
546a89429f
@ -1533,9 +1533,11 @@ class ICrmOrderActions
|
|||||||
*/
|
*/
|
||||||
public static function isForkable() {
|
public static function isForkable() {
|
||||||
$fork = COption::GetOptionString('main', 'agents_use_crontab', 'N');
|
$fork = COption::GetOptionString('main', 'agents_use_crontab', 'N');
|
||||||
if($fork === 'N') return true;
|
if($fork === 'N') {
|
||||||
|
|
||||||
$dir = $_SERVER['DOCUMENT_ROOT'] . '/retailcrm/agent.php';
|
$dir = $_SERVER['DOCUMENT_ROOT'] . '/retailcrm/agent.php';
|
||||||
return file_exists($dir) && is_dir($dir);
|
return file_exists($dir) && is_dir($dir);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user