[BUG] email.class.inc.php

Post modules, themes or any other code you want to share with the community.

Moderator: Developers

PavelRichter
Posts: 3
Joined: Thu Jan 12, 2012 2:55 pm

[BUG] email.class.inc.php

Postby PavelRichter » Thu Jan 12, 2012 3:30 pm

Hi,
I think I found a bug in /modules/email/classes/email.class.inc.php (row 1386)

Code: Select all

        function user_delete($user) {
                go_debug($user);
                $email = new email();
                $del = new email();
                $email->query("SELECT id FROM em_accounts WHERE id=?", "i", $user['id']);
                while ($email->next_record()) {
                        $del->delete_account($email->f("id"));
                }
        }


Well, this function should find the id in the table em_accounts according to user_id parameter, NOT id ... because in table em_accounts column id != user_id

Fixed:

Code: Select all

        function user_delete($user) {
                go_debug($user);
                $email = new email();
                $del = new email();
                $email->query("SELECT id FROM em_accounts WHERE user_id=?", "i", $user['id']);
                while ($email->next_record()) {
                        $del->delete_account($email->f("id"));
                }
        }


Deleting users and all his email accounts works like a charm now.
Best Regards, Pavel Richter
mschering
Site Admin
Site Admin
Posts: 8154
Joined: Tue Apr 20, 2004 1:06 pm
Location: The Netherlands - Den Bosch
Contact:

Re: [BUG] email.class.inc.php

Postby mschering » Fri Jan 20, 2012 11:16 am

Thanks! This is quite an important fix!
Best regards,

Merijn Schering
Intermesh
stonjohn4
Posts: 1
Joined: Mon Jan 21, 2013 6:21 am

Re: [BUG] email.class.inc.php

Postby stonjohn4 » Mon Jan 21, 2013 6:23 am

hi, I';m Shuvro from Bangladesh.
i've translated Group Office in Bangla and some modules are also translated.
Now how and where shall i provide those translation for public use?
"stonjohn4"
mschering
Site Admin
Site Admin
Posts: 8154
Joined: Tue Apr 20, 2004 1:06 pm
Location: The Netherlands - Den Bosch
Contact:

Re: [BUG] email.class.inc.php

Postby mschering » Thu Jan 24, 2013 12:29 pm

Please send it to info at intermesh dot nl. Thanks!
Best regards,



Merijn Schering

Intermesh

Return to “Contributed development”

Who is online

Users browsing this forum: No registered users and 1 guest