Skip to content

Instantly share code, notes, and snippets.

@f0t0n
Created August 10, 2012 16:19
Show Gist options
  • Save f0t0n/3315324 to your computer and use it in GitHub Desktop.
Save f0t0n/3315324 to your computer and use it in GitHub Desktop.
<?php
if(!empty($labelNegativeFilter)) {
$criteria->addCondition('
t.id NOT IN (
SELECT bug_id FROM {{bug_by_label}}
WHERE label_id IN (
' . implode(',', $labelNegativeFilter) .'
)
)
');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment