Skip to content

Commit

Permalink
changed array_keys to key since $artwork needs to be a stirng and not…
Browse files Browse the repository at this point in the history
… an array.
  • Loading branch information
calevans committed Dec 18, 2014
1 parent b15b038 commit b8dec93
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 b8dec93

Please sign in to comment.