MDL-14679 converted some sql_'s

This commit is contained in:
skodak
2008-06-02 21:56:06 +00:00
parent 8618fd2aeb
commit 7e60297f54
9 changed files with 15 additions and 13 deletions
+2 -1
View File
@@ -488,11 +488,12 @@ class flexible_table {
* @return type?
*/
function get_sql_where() {
global $DB;
if(!isset($this->columns['fullname'])) {
return '';
}
$LIKE = sql_ilike();
$LIKE = $DB->sql_ilike();
if(!empty($this->sess->i_first) && !empty($this->sess->i_last)) {
return 'firstname '.$LIKE.' \''.$this->sess->i_first.'%\' AND lastname '.$LIKE.' \''.$this->sess->i_last.'%\'';
}