From 9984d50cc545ca6027db7e9658e9d8e9874a9773 Mon Sep 17 00:00:00 2001 From: Gabriel Felipe Soares Date: Thu, 26 Sep 2024 12:05:12 +0200 Subject: [PATCH] chore: recursive condition adjusted --- core/kernel/persistence/smoothsql/class.Class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/kernel/persistence/smoothsql/class.Class.php b/core/kernel/persistence/smoothsql/class.Class.php index 8d3678b27..66a92ea82 100644 --- a/core/kernel/persistence/smoothsql/class.Class.php +++ b/core/kernel/persistence/smoothsql/class.Class.php @@ -643,7 +643,7 @@ public function updateUri(core_kernel_classes_Class $resource, string $newUri): public function getInstanceIds(string $classUri, bool $recursive = false): array { - if ($recursive) { + if (!$recursive) { $query = 'SELECT subject FROM statements WHERE predicate = ? AND object = ?'; $params = [ OntologyRdf::RDF_TYPE,