diff --git a/app/xmpp/v_profile_delete.php b/app/xmpp/v_profile_delete.php index 0329f7f2d4..9e6d39dd18 100644 --- a/app/xmpp/v_profile_delete.php +++ b/app/xmpp/v_profile_delete.php @@ -59,8 +59,7 @@ foreach ($result as &$row) { $profile = $profiles_array[0]; unset ($prep_statement); -$sql = ""; -$sql .= "delete from v_xmpp "; +$sql = "delete from v_xmpp "; $sql .= "where domain_uuid = '$domain_uuid' "; $sql .= "and xmpp_profile_uuid = '$profile_id' "; $db->exec(check_sql($sql)); diff --git a/app/xmpp/v_profile_edit.php b/app/xmpp/v_profile_edit.php index ce3c567e17..fd635825f9 100644 --- a/app/xmpp/v_profile_edit.php +++ b/app/xmpp/v_profile_edit.php @@ -197,12 +197,6 @@ elseif ($action == "update" && permission_exists('xmpp_edit')) { $xmpp_profile_uuid = $request['id']; } -//prepare the xmpp files to be written. delete all jingle files that are prefixed with v_ and have a file extension of .xml -$jingle_list = glob($_SESSION['switch']['conf']['dir'] . "/jingle_profiles/*v_*.xml"); -foreach($jingle_list as $name => $value) { - unlink($value); -} - if ($request['enabled'] == "true") { //prepare the xml include "client_template.php";