Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Commit

Permalink
fix #3837 - remove debug
Browse files Browse the repository at this point in the history
  • Loading branch information
julienmathis committed Oct 21, 2015
1 parent 5a70350 commit 47b6272
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions www/class/centreonTraps.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -318,13 +318,6 @@ protected function _setServiceRelations($trapId) {
FROM service s
WHERE s.service_register = '0'
AND s.service_id = traps_service_relation.service_id)");
print("DELETE FROM traps_service_relation
WHERE traps_id = " . $this->_db->escape($trapId). "
AND NOT EXISTS (SELECT s.service_id
FROM service s
WHERE s.service_register = '0'
AND s.service_id = traps_service_relation.service_id)");

$services = CentreonUtils::mergeWithInitialValues($this->_form, 'services');
$insertStr = "";
$first = true;
Expand All @@ -343,7 +336,6 @@ protected function _setServiceRelations($trapId) {
}
if ($insertStr) {
$this->_db->query("INSERT INTO traps_service_relation (traps_id, service_id) VALUES $insertStr");
print("INSERT INTO traps_service_relation (traps_id, service_id) VALUES $insertStr");
}
}

Expand Down

0 comments on commit 47b6272

Please sign in to comment.