Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Raue <christian.raue@gmail.com>2014-07-15 17:29:46 +0400
committerChristian Raue <christian.raue@gmail.com>2014-07-19 12:26:47 +0400
commit33a43a50d4d66de3409cb4ac4ed62a656179e58c (patch)
treecfbd8fad602af8adf8a1c1eeacd29f0cceb73fe9 /core/Nonce.php
parent5d7c6f4a813c6193e0be20ccba99037926846b14 (diff)
removed unused variables and dead code
Diffstat (limited to 'core/Nonce.php')
-rw-r--r--core/Nonce.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/core/Nonce.php b/core/Nonce.php
index fecaaa7764..825b9aea56 100644
--- a/core/Nonce.php
+++ b/core/Nonce.php
@@ -140,8 +140,10 @@ class Nonce
}
// standard ports
- $origins[] = 'http://' . $host;
- $origins[] = 'https://' . $host;
+ $origins = array(
+ 'http://' . $host,
+ 'https://' . $host,
+ );
// non-standard ports
if (!empty($port) && $port != 80 && $port != 443) {