Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
lolo888
ISPConfig 3
Commits
496a43b0
Commit
496a43b0
authored
Nov 18, 2008
by
tbrehm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed bug: getmail config files are not written.
parent
cdf85ead
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
interface/web/mail/mail_get_edit.php
interface/web/mail/mail_get_edit.php
+2
-2
No files found.
interface/web/mail/mail_get_edit.php
View file @
496a43b0
...
...
@@ -92,7 +92,7 @@ class page_action extends tform_actions {
}
// end if user is not admin
// Set the server ID according to the selected destination
$tmp
=
$app
->
db
->
queryOneRecord
(
"SELECT server_id FROM mail_user WHERE email = '"
.
mysql_real_escape_string
(
$this
->
dataRecord
[
"destination"
])
.
"'"
);
$tmp
=
$app
->
db
->
queryOneRecord
(
"SELECT server_id FROM mail_user WHERE email = '"
.
$app
->
db
->
quote
(
$this
->
dataRecord
[
"destination"
])
.
"'"
);
$this
->
dataRecord
[
"server_id"
]
=
$tmp
[
"server_id"
];
unset
(
$tmp
);
...
...
@@ -102,7 +102,7 @@ class page_action extends tform_actions {
function
onAfterInsert
()
{
global
$app
;
$tmp
=
$app
->
db
->
queryOneRecord
(
"SELECT sys_groupid FROM mail_user WHERE email = '"
.
mysql_real_escape_string
(
$this
->
dataRecord
[
"destination"
])
.
"'"
);
$tmp
=
$app
->
db
->
queryOneRecord
(
"SELECT sys_groupid FROM mail_user WHERE email = '"
.
$app
->
db
->
quote
(
$this
->
dataRecord
[
"destination"
])
.
"'"
);
$app
->
db
->
query
(
"update mail_get SET sys_groupid = "
.
$tmp
[
'sys_groupid'
]
.
" WHERE mailget_id = "
.
$this
->
id
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment