Skip to content

Commit

Permalink
Merge pull request #37 from nstielau/default_artwork_to_fist
Browse files Browse the repository at this point in the history
Update the 'art' command to default to the fist artwork.
  • Loading branch information
mikevanwinkle committed Dec 18, 2014
2 parents 3c4bed6 + 05d9887 commit b15b038
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion php/commands/art.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class Art_Command extends Terminus_Command {
*
*/
function __invoke( $args, $assoc_args ) {
$artwork = array_shift($args);
$artwork = array_shift($args) ?: array_keys($this->works, 0);

if (!empty($artwork) && array_key_exists($artwork, $this->works)){
echo Terminus::colorize("%g".base64_decode($this->works[$artwork])."%n")."\n";
Expand Down

0 comments on commit b15b038

Please sign in to comment.