Commit 16cf00aa216d80a26b1baca695a4c519a925612c
1 parent
954f587d
changed lookupField query string so that STRING variables will be parsed correctly
to the query string.. git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@294 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
1 additions
and
1 deletions
lib/database/lookup.inc
| ... | ... | @@ -53,7 +53,7 @@ function lookupGroupIDs($userID) { |
| 53 | 53 | function lookupField($tableName, $selectFieldName, $whereFieldName, $whereFieldValue) { |
| 54 | 54 | global $default; |
| 55 | 55 | $sql = new Owl_DB(); |
| 56 | - $query = "select $selectFieldName from $tableName where $whereFieldName = $whereFieldValue"; | |
| 56 | + $query = "select $selectFieldName from $tableName where $whereFieldName = '". $whereFieldValue . "'" ; | |
| 57 | 57 | $default->log->debug("lookup.inc::lookupField query=$query"); |
| 58 | 58 | if ($sql->query($query)) { |
| 59 | 59 | if ($sql->next_record()) { | ... | ... |