Skip to content
This repository has been archived by the owner on Nov 24, 2019. It is now read-only.

Commit

Permalink
Fix isset error
Browse files Browse the repository at this point in the history
  • Loading branch information
Benedikt Bär committed Jul 19, 2016
1 parent 30c8a0a commit 45f9e9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/GitDeployer/Commands/DeployCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ protected function configure() {
// -> Get arguments to command to see if we need to show
// a deployer's help output
$argv = $_SERVER['argv'];
if ($argv[1] == 'help' && isset($argv[2]) && $argv[2] == 'deploy' && isset($argv[3]) && strlen($argv[3]) > 0) {
if (isset($argv[1]) && $argv[1] == 'help' && isset($argv[2]) && $argv[2] == 'deploy' && isset($argv[3]) && strlen($argv[3]) > 0) {
// Load a deployer that matches our name
$className = '\GitDeployer\Deployers\\' . ucwords(strtolower($argv[3])) . 'Deployer';
if (!class_exists($className)) throw new \Exception('The deployer with the name' . ucwords(strtolower($argv[3])) . ' was not found!');
Expand Down

0 comments on commit 45f9e9f

Please sign in to comment.