Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Anıl committed Sep 12, 2012
1 parent 7a549ad commit 367fafa
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions rew.phps
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -449,9 +449,13 @@ class rewriteConf {
} }
if(!isset($isReturned)){ if(!isset($isReturned)){
if($conf["rule"]["flags"]["unknown"] != 1){ if($conf["rule"]["flags"]["unknown"] != 1){
if(!empty(trim($conf["rule"]["trueExp"])))
if(!empty($conf["rule"]["trueExp"]))
{
$ret.= 'if ($rule_'.$r.' = "'.$conf["rule"]["trueExp"].'"){ $ret.= 'if ($rule_'.$r.' = "'.$conf["rule"]["trueExp"].'"){
'; ';
}

if($conf["rule"]["flags"]["return"] < 1){ if($conf["rule"]["flags"]["return"] < 1){


if(is_array($conf["rule"]["flags"]["set"])){ if(is_array($conf["rule"]["flags"]["set"])){
Expand Down Expand Up @@ -485,9 +489,11 @@ class rewriteConf {
'; ';
} }
} }
if(!empty(trim($conf["rule"]["trueExp"]))) if(!empty($conf["rule"]["trueExp"]))
{
$ret.='} $ret.='}
'; ';
}
} else { } else {
$ret.= '#ignored: unknown variable in rule flag $ret.= '#ignored: unknown variable in rule flag
'; ';
Expand Down

0 comments on commit 367fafa

Please sign in to comment.