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
path: root/misc
diff options
context:
space:
mode:
authormattab <matthieu.aubry@gmail.com>2014-11-04 02:21:27 +0300
committermattab <matthieu.aubry@gmail.com>2014-11-04 02:21:27 +0300
commit8ee8bf2583802cabb5c85de535df0e3a60fc668e (patch)
tree6eb27d130ddaa0e940379443c1decbdfec64cf3c /misc
parent7f7a64993d82d5baf36035f44e7a07e784bd3351 (diff)
Fix error when Piwik is not installed yet
Diffstat (limited to 'misc')
-rw-r--r--misc/cron/updatetoken.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/misc/cron/updatetoken.php b/misc/cron/updatetoken.php
index ff02e4f30a..4638f8bd27 100644
--- a/misc/cron/updatetoken.php
+++ b/misc/cron/updatetoken.php
@@ -40,8 +40,7 @@ function getPiwikDomain()
{
foreach($_SERVER['argv'] as $param) {
$pattern = '--piwik-domain=';
- $equalSign = strpos($param, $pattern);
- if($equalSign !== false) {
+ if(false !== strpos($param, $pattern)) {
return substr($param, strlen($pattern));
}
}