// Add this filter (all filters are active by default)
$insertSQL .= sprintf("('%s','%s','Y'),", $filterName, $filterFunction);
$inserted++;
- } elseif ($active == "R") {
+ } elseif ($active == 'R') {
// Remove this filter
$removeSQL .= sprintf(" (`filter_name`='%s' AND `filter_function`='%s') OR", $filterName, $filterFunction);
$removed++;
// Something has been removed?
if ($removed > 0) {
// Finish SQL command
- $removeSQL = substr($removeSQL, 0, -2) . "LIMIT ".$removed;
+ $removeSQL = substr($removeSQL, 0, -2) . 'LIMIT '.$removed;
// And run it
ADD_SQL($removeSQL);