summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/kolab_client_task.php38
-rw-r--r--public_html/skins/default/style.css1
2 files changed, 22 insertions, 17 deletions
diff --git a/lib/kolab_client_task.php b/lib/kolab_client_task.php
index 25443f2..010e1ce 100644
--- a/lib/kolab_client_task.php
+++ b/lib/kolab_client_task.php
@@ -476,16 +476,18 @@ class kolab_client_task
*/
protected function user_types()
{
- if (!isset($_SESSION['user_types'])) {
- $result = $this->api->post('user_types.list');
- $list = $result->get('list');
+ if (isset($_SESSION['user_types'])) {
+ return $_SESSION['user_types'];
+ }
- if (is_array($list)) {
- $_SESSION['user_types'] = $list;
- }
+ $result = $this->api->post('user_types.list');
+ $list = $result->get('list');
+
+ if (is_array($list) && !$this->config_get('devel_mode')) {
+ $_SESSION['user_types'] = $list;
}
- return $_SESSION['user_types'];
+ return $list;
}
/**
@@ -799,16 +801,18 @@ class kolab_client_task
}
// Add debug information
- ksort($data);
- $debug = kolab_html::escape(print_r($data, true));
- $debug = preg_replace('/(^Array\n\(|\n*\)$|\t)/', '', $debug);
- $debug = str_replace("\n ", "\n", $debug);
- $debug = '<pre class="debug">' . $debug . '</pre>';
- $fields['debug'] = array(
- 'label' => 'debug',
- 'section' => 'system',
- 'value' => $debug,
- );
+ if ($this->config_get('devel_mode')) {
+ ksort($data);
+ $debug = kolab_html::escape(print_r($data, true));
+ $debug = preg_replace('/(^Array\n\(|\n*\)$|\t)/', '', $debug);
+ $debug = str_replace("\n ", "\n", $debug);
+ $debug = '<pre class="debug">' . $debug . '</pre>';
+ $fields['debug'] = array(
+ 'label' => 'debug',
+ 'section' => 'system',
+ 'value' => $debug,
+ );
+ }
}
return array($fields, $types, $type);
diff --git a/public_html/skins/default/style.css b/public_html/skins/default/style.css
index beddecc..9db3934 100644
--- a/public_html/skins/default/style.css
+++ b/public_html/skins/default/style.css
@@ -19,6 +19,7 @@ h1, h2, h3, h4, h5, h6 {
input[type="text"],
input[type="password"],
+select[multiple="multiple"],
textarea {
border: 1px solid #d0d0d0;
border-radius: 3px;