Skip to content

Commit 1c54f0d

Browse files
committed
Fix undefined index error
1 parent c61188a commit 1c54f0d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

php/EE/Runner.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ public function init_logger() {
489489
EE::err( 'Please run `ee` with root privileges.' );
490490
}
491491

492-
if ( !empty( $this->arguments[0] ) && 'cli' === $this->arguments[0] && ! empty( $this->arguments[1] ) && 'info' === $this->arguments[1] && ! $this->config['ssh'] ) {
492+
if ( !empty( $this->arguments[0] ) && 'cli' === $this->arguments[0] && ! empty( $this->arguments[1] ) && 'info' === $this->arguments[1] ) {
493493
$file_logging_path = '/dev/null';
494494
}
495495
else {
@@ -727,7 +727,7 @@ public function start() {
727727

728728
// Protect 'cli info' from most of the runtime,
729729
// except when the command will be run over SSH
730-
if ( ! empty( $this->arguments[0] ) && 'cli' === $this->arguments[0] && ! empty( $this->arguments[1] ) && 'info' === $this->arguments[1] && ! $this->config['ssh'] ) {
730+
if ( ! empty( $this->arguments[0] ) && 'cli' === $this->arguments[0] && ! empty( $this->arguments[1] ) && 'info' === $this->arguments[1] ) {
731731
$this->_run_command_and_exit();
732732
}
733733

0 commit comments

Comments
 (0)