Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix: Notice: undefined index on line 124

  • Loading branch information...
commit cf0b216639d27c528c8fdf820c1c1ea2822dd6ac 1 parent 38859da
@txgruppi txgruppi authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 Console/Color2.php
View
6 Console/Color2.php
@@ -121,9 +121,9 @@ public function color($color = null, $style = null, $background = null) // {{{
{
$colors = $this->getColorCodes();
if (is_array($color)) {
- $style = $color['style'];
- $background = $color['background'];
- $color = $color['color'];
+ $style = isset($color['style']) ? $color['style'] : null;
+ $background = isset($color['background']) ? $color['background'] : null;
+ $color = isset($color['color']) ? $color['color'] : null;
}
if ($color == 'reset') {
Please sign in to comment.
Something went wrong with that request. Please try again.