Skip to content

Commit 50e7866

Browse files
committed
Merge pull request #42 from calevans/master
changed array_keys to key since $artwork needs to be a string
2 parents e184ffa + b8dec93 commit 50e7866

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

php/commands/art.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class Art_Command extends Terminus_Command {
1616
*
1717
*/
1818
function __invoke( $args, $assoc_args ) {
19-
$artwork = array_shift($args) ?: array_keys($this->works, 0);
19+
$artwork = array_shift($args) ?: key($this->works);
2020

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

0 commit comments

Comments
 (0)