summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2008-09-30 06:14:28 +0000
committeralecpl <alec@alec.pl>2008-09-30 06:14:28 +0000
commit123a02c8c72e03c00597ef5a6636c7977ea8aed6 (patch)
tree39456d0cef4403e2ee6ddeb11b2ee7c1b6f50fd9
parent526d170e1d4710aec10bffbae2829a8de6baa1d4 (diff)
- #1485423: fixed virtuser_query checking
-rw-r--r--program/include/rcube_user.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/program/include/rcube_user.php b/program/include/rcube_user.php
index 8c77fdcf4..00f5cd7c4 100644
--- a/program/include/rcube_user.php
+++ b/program/include/rcube_user.php
@@ -373,9 +373,9 @@ class rcube_user
$user_name = $user != $user_email ? $user : '';
// try to resolve the e-mail address from the virtuser table
- if ($virtuser_query = $rcmail->config->get('virtuser_query') &&
- ($sql_result = $dbh->query(preg_replace('/%u/', $dbh->escapeSimple($user), $virtuser_query))) &&
- ($dbh->num_rows() > 0))
+ if (($virtuser_query = $rcmail->config->get('virtuser_query'))
+ && ($sql_result = $dbh->query(preg_replace('/%u/', $dbh->escapeSimple($user), $virtuser_query)))
+ && ($dbh->num_rows() > 0))
{
while ($sql_arr = $dbh->fetch_array($sql_result))
{