diff options
author | mattab <matthieu.aubry@gmail.com> | 2014-11-04 02:21:27 +0300 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2014-11-04 02:21:27 +0300 |
commit | 8ee8bf2583802cabb5c85de535df0e3a60fc668e (patch) | |
tree | 6eb27d130ddaa0e940379443c1decbdfec64cf3c /misc | |
parent | 7f7a64993d82d5baf36035f44e7a07e784bd3351 (diff) |
Fix error when Piwik is not installed yet
Diffstat (limited to 'misc')
-rw-r--r-- | misc/cron/updatetoken.php | 3 |
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)); } } |