Skip to content

Commit

Permalink
Fix heredoc variable expansion.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Oct 8, 2013
1 parent f098a5f commit bf39141
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions framework/ActiveSync/lib/Horde/ActiveSync/State/Mongo.php
Expand Up @@ -1232,7 +1232,7 @@ protected function _gc($syncKey)
function() {
var p = /^\{([0-9A-Za-z-]+)\}([0-9]+)$/;
var results = this.sync_key.match(p);
if (results && results[1] == "{$guid}" && results[2] < {$n}) {
if (results && (results[1] == "$guid") && (results[2] < $n)) {
return true;
} else if (!results) {
return true;
Expand Down Expand Up @@ -1263,7 +1263,7 @@ function() {
function() {
var p = /^\{([0-9A-Za-z-]+)\}([0-9]+)$/;
var results = this.sync_key.match(p);
if (results && results[1] == "{$guid}" && results[2] < {$n}) {
if (results && (results[1] == "$guid") && (results[2] < $n)) {
return true;
}
Expand Down

0 comments on commit bf39141

Please sign in to comment.