Fix typo in previous commit: remove quotes where not necessary in Database::select() param - refs BT#9418

1.10.x
Yannick Warnier 10 years ago
parent 4a57cef0eb
commit 23bf0c42b3
  1. 10
      main/inc/lib/sessionmanager.lib.php

@ -5743,20 +5743,20 @@ class SessionManager
if (is_array($extraFieldsToInclude) && count($extraFieldsToInclude) > 0) {
$resultData = Database::select('*', $sTable, array(
'where' => array(
"name LIKE '%?%' " => $term,
"OR description LIKE '%?%' " => $term,
"name LIKE %?% " => $term,
"OR description LIKE %?% " => $term,
"OR id IN (
SELECT session_id
FROM $sfvTable
WHERE field_value LIKE '%?%'
WHERE field_value LIKE %?%
) " => $term
)
));
} else {
$resultData = Database::select('*', $sTable, array(
'where' => array(
"name LIKE '%?%' " => $term,
"OR description LIKE '%?%' " => $term
"name LIKE %?% " => $term,
"OR description LIKE %?% " => $term
)
));

Loading…
Cancel
Save