Skip to content

Commit 2b785ba

Browse files
author
Blake Bertuccelli
committed
Add valid SQL
1 parent f264de6 commit 2b785ba

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

models/db.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ private static function filters($filters){
174174
$copy = $filter['value'];
175175
$output['sql'].= '(';
176176
foreach($filter['value'] as $value){
177-
$output['sql'].= ' FIND_IN_SET("'.$value['value'].'", '.$value['column'].')';
177+
$output['sql'].= ' FIND_IN_SET(\''.$value['value'].'\', '.$value['column'].')';
178178
if(next($copy)){
179179
$output['sql'].= ' OR ';
180180
}else{
@@ -773,7 +773,7 @@ public static function create_tags_table(){
773773
`category` varchar(255) DEFAULT NULL,
774774
`description` text DEFAULT NULL,
775775
PRIMARY KEY (slug)
776-
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;";
776+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;";
777777
$params = array();
778778
$result = self::query($sql, $params, false);
779779

@@ -787,7 +787,7 @@ public static function create_tags_table(){
787787
if( !empty($integration_tags) ){
788788
register_tags($integration_tags);
789789
}
790-
790+
791791
}
792792

793793
/**

0 commit comments

Comments
 (0)