From 05d98871f3403330806467d877cac2cb91827f88 Mon Sep 17 00:00:00 2001 From: Nick Stielau Date: Wed, 10 Dec 2014 14:35:02 -0800 Subject: [PATCH] Update the 'art' command to default to the fist artwork. --- 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 77a9aab10..0fdea5054 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); + $artwork = array_shift($args) ?: array_keys($this->works, 0); if (!empty($artwork) && array_key_exists($artwork, $this->works)){ echo Terminus::colorize("%g".base64_decode($this->works[$artwork])."%n")."\n";