Skip to content

Commit

Permalink
revert previous (done in r19673)
Browse files Browse the repository at this point in the history
  • Loading branch information
yllen committed Dec 1, 2012
1 parent 3ee5398 commit 980d773
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions inc/rulecriteria.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -331,10 +331,6 @@ static function match(RuleCriteria &$criterion, $field, &$criterias_results, &$r
return false;

case Rule::PATTERN_UNDER :
// If criteria begin with _ strip it
if ($criteria[0] == '_') {
$criteria = substr($criteria, 1);
}
$table = getTableNameForForeignKeyField($criteria);
$values = getSonsOf($table, $pattern);
if (isset($values[$field])) {
Expand All @@ -343,10 +339,6 @@ static function match(RuleCriteria &$criterion, $field, &$criterias_results, &$r
return false;

case Rule::PATTERN_NOT_UNDER :
// If criteria begin with _ strip it
if ($criteria[0] == '_') {
$criteria = substr($criteria, 1);
}
$table = getTableNameForForeignKeyField($criteria);
$values = getSonsOf($table, $pattern);
if (isset($values[$field])) {
Expand Down

0 comments on commit 980d773

Please sign in to comment.