Skip to content

Commit 16b9620

Browse files
author
Till Brehm
committed
Merge branch 'xxxx-dupe-query' into 'develop'
Remove duplicate query See merge request ispconfig/ispconfig3!1714
2 parents dce4199 + 1db06ad commit 16b9620

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

server/plugins-available/shelluser_base_plugin.inc.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -336,13 +336,12 @@ function delete($event_name, $data) {
336336
// Get the UID of the user
337337
$userid = intval($app->system->getuid($data['old']['username']));
338338
if($userid > $this->min_uid) {
339-
$web = $app->db->queryOneRecord("SELECT * FROM web_domain WHERE domain_id = ".intval($data['old']['parent_domain_id']));
339+
$web = $app->db->queryOneRecord("SELECT * FROM web_domain WHERE domain_id = ?", $data['old']['parent_domain_id']);
340340

341341
// check if we have to delete the dir
342342
$check = $app->db->queryOneRecord('SELECT shell_user_id FROM `shell_user` WHERE `dir` = ?', $data['old']['dir']);
343343
if(!$check && is_dir($data['old']['dir'])) {
344344

345-
$web = $app->db->queryOneRecord("SELECT * FROM web_domain WHERE domain_id = ?", $data['old']['parent_domain_id']);
346345
$app->system->web_folder_protection($web['document_root'], false);
347346

348347
// delete dir

0 commit comments

Comments
 (0)