Skip to content

Commit

Permalink
Merge branch '3.5' of git@github.com:Dolibarr/dolibarr.git into 3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Jul 14, 2014
2 parents 2cf9a75 + 32a6d59 commit 25f1259
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion htdocs/core/class/cookie.class.php
Expand Up @@ -91,7 +91,9 @@ function decryptCookie()
$num = (count($this->cookiearray) - 2);
for ($f = 0; $f <= $num; $f++)
{
$this->myValue .= strval(chr($this->cookiearray[$f]/$this->myKey));
if (!empty($this->myKey)) {
$this->myValue .= strval(chr($this->cookiearray[$f]/$this->myKey));
}
}

return(base64_decode($this->myValue));
Expand Down

0 comments on commit 25f1259

Please sign in to comment.