#196 Virtual list show no mailboxes

Core (82)

I don not know if I am here correct but I think I found a small bug.

The problem: In my admin virtual list view, no mailboxes are visible.

I use the actual svn revision 832.

I search through the code and found a possible solution.
In list-virtual.php in line 202 it sounds $sql_select = " SELECT $table_mailbox.* "; what should be $sql_select = "SELECT $table_mailbox.* ";
So without the leading blank, because functions.inc.php checks in line 1582 if the query starts with "SELECT", what fails with the blank inside.

I hope I could help you.
Best regards


  • Christian Boltz

    Christian Boltz - 2010-06-22

    Good catch! I have to admit that I did not even read this part of the code before ;-)

    I went for another fix: instead of changing the query (and possibly missing another one), I changed the function to use trim() on the query before checking if it starts with SELECT.

    Commited to SVN r836 (trunk), I'll also backport the fix to the 2.3 branch.

  • Christian Boltz

    Christian Boltz - 2010-06-22
    • status: open --> closed-fixed

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks