Skip to content

Commit

Permalink
fix(form): fix malformed sql
Browse files Browse the repository at this point in the history
Signed-off-by: Thierry Bugier <tbugier@teclib.com>
  • Loading branch information
btry committed Jun 8, 2020
1 parent adb70b3 commit eec2a2e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion inc/target_actor.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ public function export($remove_uuid = false) {
public function deleteObsoleteItems(CommonDBTM $container, array $exclude)
{
$keepCriteria = [
self::$items_id => $container->getID(),
static::$items_id => $container->getID(),
];
if (count($exclude) > 0) {
$keepCriteria[] = ['NOT' => ['id' => $exclude]];
Expand Down
2 changes: 1 addition & 1 deletion inc/targetbase.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1821,7 +1821,7 @@ protected function showActorSettingsForType($actorType, array $actors) {
public function deleteObsoleteItems(CommonDBTM $container, array $exclude)
{
$keepCriteria = [
self::$items_id => $container->getID(),
static::$items_id => $container->getID(),
];
if (count($exclude) > 0) {
$keepCriteria[] = ['NOT' => ['id' => $exclude]];
Expand Down

0 comments on commit eec2a2e

Please sign in to comment.