Skip to content

Commit

Permalink
MDL-24079 blog now using new sql_like();Êfixed typo
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Sep 4, 2010
1 parent c014d57 commit b6859e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blog/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

//correct tagid if a text tag is provided as a param
if (!empty($tag)) {
if ($tagrec = $DB->get_record_sql("SELECT * FROM {tag} WHERE ". $DB->sql_ilike('name', '?', false), array("%$tag%"))) {
if ($tagrec = $DB->get_record_sql("SELECT * FROM {tag} WHERE ". $DB->sql_like('name', '?', false), array("%$tag%"))) {
$tagid = $tagrec->id;
} else {
unset($tagid);
Expand Down

0 comments on commit b6859e0

Please sign in to comment.