Skip to content

Commit b8dec93

Browse files
committed
changed array_keys to key since $artwork needs to be a stirng and not an array.
1 parent b15b038 commit b8dec93

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)