Permalink
Browse files

Fix method name

  • Loading branch information...
1 parent 87a9269 commit 720639c919024eceed9d64e9a57d9c9ada6eda43 @mattab mattab committed Mar 10, 2014
Showing with 3 additions and 3 deletions.
  1. +3 −3 core/CliMulti/Process.php
View
6 core/CliMulti/Process.php
@@ -146,7 +146,7 @@ public static function isSupported()
return false;
}
- if(!self::shellExecFunctionExists()) {
+ if(self::shellExecFunctionIsDisabled()) {
return false;
}
if (static::commandExists('ps') && self::returnsSuccessCode('ps') && self::commandExists('awk')) {
@@ -156,11 +156,11 @@ public static function isSupported()
return false;
}
- private static function shellExecFunctionExists()
+ private static function shellExecFunctionIsDisabled()
{
$command = 'shell_exec';
$disabled = explode(',', ini_get('disable_functions'));
- return !in_array($command, $disabled);
+ return in_array($command, $disabled);
}
private static function returnsSuccessCode($command)

0 comments on commit 720639c

Please sign in to comment.