Fix a bug where XMPP wrote the XML file but for each loop deleted the previous XML file.

This commit is contained in:
Mark Crane
2012-08-22 04:22:09 +00:00
parent 9f0b5612ca
commit 036b3315dd
2 changed files with 1 additions and 8 deletions

View File

@@ -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));