Permalink
Browse files

minor changes

  • Loading branch information...
Anıl
Anıl committed Sep 12, 2012
1 parent 7a549ad commit 367fafaf269d3c9cee37c8a8a77958322e258353
Showing with 8 additions and 2 deletions.
  1. +8 −2 rew.phps
View
@@ -449,9 +449,13 @@ class rewriteConf {
}
if(!isset($isReturned)){
if($conf["rule"]["flags"]["unknown"] != 1){
- if(!empty(trim($conf["rule"]["trueExp"])))
+
+ if(!empty($conf["rule"]["trueExp"]))
+ {
$ret.= 'if ($rule_'.$r.' = "'.$conf["rule"]["trueExp"].'"){
';
+ }
+
if($conf["rule"]["flags"]["return"] < 1){
if(is_array($conf["rule"]["flags"]["set"])){
@@ -485,9 +489,11 @@ class rewriteConf {
';
}
}
- if(!empty(trim($conf["rule"]["trueExp"])))
+ if(!empty($conf["rule"]["trueExp"]))
+ {
$ret.='}
';
+ }
} else {
$ret.= '#ignored: unknown variable in rule flag
';

0 comments on commit 367fafa

Please sign in to comment.