Skip to content

Commit

Permalink
Merge pull request #42 from calevans/master
Browse files Browse the repository at this point in the history
changed array_keys to key since $artwork needs to be a string
  • Loading branch information
nstielau committed Dec 19, 2014
2 parents e184ffa + b8dec93 commit 50e7866
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) ?: array_keys($this->works, 0);
$artwork = array_shift($args) ?: key($this->works);

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 50e7866

Please sign in to comment.