9209447e0183bd541258305108d68409b9e1ca68

Author: Mark Story

Date: 2009-07-22 16:04:52 -0400

Fixing warning when there are no users.

diff --git a/vendors/shells/api_index.php b/vendors/shells/api_index.php index 1159384..fbe6df6 100644 --- a/vendors/shells/api_index.php +++ b/vendors/shells/api_index.php @@ -379,9 +379,10 @@ class ApiIndexShell extends Shell { $this->hr(); if (empty($config['users'])) { $this->out(__('You have no users :(', true)); - } - foreach ($config['users'] as $user => $pass) { - $this->out($user . ' : ' . $pass); + } else { + foreach ($config['users'] as $user => $pass) { + $this->out($user . ' : ' . $pass); + } } return $this->in('Create new users?', array('y', 'n'), 'n'); }