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

Commit

Permalink
fix(DB): properly delete contacts without name
Browse files Browse the repository at this point in the history
  • Loading branch information
sc979 committed Nov 25, 2019
1 parent 1e0317e commit 45d86b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion www/install/php/Update-19.10.2.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
// these users have been added using the auto-import ldap feature and will be re-imported at their next login.
try {
$pearDB->query(
"DELETE FROM contact WHERE contact_name is NULL"
'DELETE FROM contact WHERE contact_name = ""'
);
} catch (\PDOException $e) {
$centreonLog->insertLog(
Expand Down

0 comments on commit 45d86b1

Please sign in to comment.