| Conditions | 3 |
| Paths | 3 |
| Total Lines | 11 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | public function getCookie($name) |
||
| 9 | { |
||
| 10 | if (isset($_COOKIE[$name])) { |
||
| 11 | return $_COOKIE[$name]; |
||
| 12 | } |
||
| 13 | // Look for backup cookie if same site is not supported by the user's browser. |
||
| 14 | if (isset($_COOKIE["LEGACY_".$name])) { |
||
| 15 | return $_COOKIE["LEGACY_".$name]; |
||
| 16 | } |
||
| 17 | |||
| 18 | return false; |
||
| 19 | } |
||
| 42 |