From b8dec938cd2ce809ea6e25f6851c7a370529dd7d Mon Sep 17 00:00:00 2001 From: Cal Evans Date: Thu, 18 Dec 2014 16:11:19 -0600 Subject: [PATCH] changed array_keys to key since $artwork needs to be a stirng and not an array. --- php/commands/art.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/php/commands/art.php b/php/commands/art.php index 0fdea5054..2e5dabf7b 100755 --- a/php/commands/art.php +++ b/php/commands/art.php @@ -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";