Fix sql error on widget search
This commit is contained in:
parent
31919d4d2c
commit
6913f237dc
|
@ -206,7 +206,7 @@ class Widget
|
|||
|
||||
$sql_search = '';
|
||||
if (empty($search) === false) {
|
||||
$sql_search = 'AND description LIKE "%'.$search.'%" ';
|
||||
$sql_search = 'AND description LIKE "%'.addslashes($search).'%" ';
|
||||
}
|
||||
|
||||
// User admin view all dashboards.
|
||||
|
|
Loading…
Reference in New Issue