| @@ -727,7 +727,7 @@ | ||
| 727 | 727 | */ | 
| 728 | 728 | private function addJSGlobals() | 
| 729 | 729 |      { | 
| 730 | - $this->body = $this->body.'<script> | |
| 730 | + $this->body = $this->body.'<script> | |
| 731 | 731 | var profilesUrl = \''.$this->profilesUrl.'\' | 
| 732 | 732 | var loginUrl = \''.$this->loginUrl.'\' | 
| 733 | 733 | var logoutUrl = \''.$this->logoutUrl.'\' | 
| @@ -27,9 +27,11 @@ | ||
| 27 | 27 |      { | 
| 28 | 28 | // build a replacement array with braces around the context keys | 
| 29 | 29 | $replace = array(); | 
| 30 | -        foreach ($context as $key => $val) { | |
| 30 | + foreach ($context as $key => $val) | |
| 31 | +        { | |
| 31 | 32 | // check that the value can be casted to string | 
| 32 | -            if (!is_array($val) && (!is_object($val) || method_exists($val, '__toString'))) { | |
| 33 | + if (!is_array($val) && (!is_object($val) || method_exists($val, '__toString'))) | |
| 34 | +            { | |
| 33 | 35 |                  $replace['{' . $key . '}'] = $val; | 
| 34 | 36 | } | 
| 35 | 37 | } |