Skip to content
Code-Schnipsel Gruppen Projekte
Commit 04ec0d1a erstellt von Patrick Müller's avatar Patrick Müller
Dateien durchsuchen

fix: bind param for groupId with UUID groupId

Übergeordneter e1f60a37
No related branches found
No related tags found
1 Merge Request!10Next 2.x
Pipeline #12253 mit Warnungen bestanden mit Phase
in 10 Sekunden
Dieser Commit ist Teil des Merge Request !10. Hier erstellte Kommentare werden im Kontext dieses Merge Request erstellt.
...@@ -268,10 +268,11 @@ public function getMembershipIdsByGroupIds($groupIds) ...@@ -268,10 +268,11 @@ public function getMembershipIdsByGroupIds($groupIds)
$binds = []; $binds = [];
foreach ($groupIds as $groupId) { foreach ($groupIds as $groupId) {
$whereOr[] = '`groupIds` LIKE :' . $groupId; $bindParam = md5($groupId);
$binds[$groupId] = [ $whereOr[] = '`groupIds` LIKE :' . $bindParam;
$binds[$bindParam] = [
'value' => '%,' . $groupId . ',%', 'value' => '%,' . $groupId . ',%',
'type' => \PDO::PARAM_INT 'type' => \PDO::PARAM_STR
]; ];
} }
......
0% oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren