Skip to content

Commit

Permalink
Fix curly quote in comment
Browse files Browse the repository at this point in the history
Didn't print too well in editors or on the web
  • Loading branch information
ozh committed Feb 4, 2017
1 parent c1aa11e commit 3f72b0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
$where .= " AND CONCAT_WS('',`keyword`,`url`,`title`,`ip`) LIKE ('$search')";
// Search across all fields. The resulting SQL will be something like:
// SELECT * FROM `yourls_url` WHERE CONCAT_WS('',`keyword`,`url`,`title`,`ip`) LIKE ("%ozh%")
// CONCAT_WS because CONCAT('foo', 'bar, NULL) = NULL. NULL wins. Not sure if values can be NULL now or in the future, so better safe.
// CONCAT_WS because CONCAT('foo', 'bar', NULL) = NULL. NULL wins. Not sure if values can be NULL now or in the future, so better safe.
// TODO: pay attention to this bit when the DB schema changes
} else {
$where .= " AND `$search_in` LIKE ('$search')";
Expand Down

0 comments on commit 3f72b0c

Please sign in to comment.