1
0
This commit is contained in:
Garvin Hicking
2008-03-20 09:15:07 +00:00
parent 8265e171e9
commit eaf4c57a99
4 changed files with 25 additions and 15 deletions

View File

@ -535,7 +535,7 @@ function &serendipity_fetchEntry($key, $val, $full = true, $fetchDrafts = 'false
ON e.authorid = a.authorid
{$cond['joins']}
WHERE
e.$key LIKE '" . serendipity_db_escape_string($val) . "'
e.$key " . ($key == 'id' ? '=' : 'LIKE') . " '" . serendipity_db_escape_string($val) . "'
{$cond['and']}
LIMIT 1";