diff options
author | Aleksander Machniak <alec@alec.pl> | 2014-03-30 11:20:21 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2014-03-30 11:20:21 +0200 |
commit | 8c783c0d66e9b7e2c27fce7beee2c07594bae3c4 (patch) | |
tree | 1065a307cab92c6b62db43f390b3f0677056012d /plugins/virtuser_query/virtuser_query.php | |
parent | e435d3b1205c3e1a8f925fc131ed6d18820e2143 (diff) |
Fix so identity fields are cast to string to prevent "Column X cannot be null" errors.
Diffstat (limited to 'plugins/virtuser_query/virtuser_query.php')
-rw-r--r-- | plugins/virtuser_query/virtuser_query.php | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/plugins/virtuser_query/virtuser_query.php b/plugins/virtuser_query/virtuser_query.php index a0b748288..c08d6bd38 100644 --- a/plugins/virtuser_query/virtuser_query.php +++ b/plugins/virtuser_query/virtuser_query.php @@ -70,13 +70,13 @@ class virtuser_query extends rcube_plugin if (strpos($sql_arr[0], '@')) { if ($p['extended'] && count($sql_arr) > 1) { $result[] = array( - 'email' => rcube_utils::idn_to_ascii($sql_arr[0]), - 'name' => $sql_arr[1], - 'organization' => $sql_arr[2], - 'reply-to' => rcube_utils::idn_to_ascii($sql_arr[3]), - 'bcc' => rcube_utils::idn_to_ascii($sql_arr[4]), - 'signature' => $sql_arr[5], - 'html_signature' => (int)$sql_arr[6], + 'email' => rcube_utils::idn_to_ascii($sql_arr[0]), + 'name' => (string) $sql_arr[1], + 'organization' => (string) $sql_arr[2], + 'reply-to' => (string) rcube_utils::idn_to_ascii($sql_arr[3]), + 'bcc' => (string) rcube_utils::idn_to_ascii($sql_arr[4]), + 'signature' => (string) $sql_arr[5], + 'html_signature' => (int) $sql_arr[6], ); } else { |