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-22 12:22:47 +0400
committerChristian Raue <christian.raue@gmail.com>2014-07-23 11:10:40 +0400
commit259db751ace8fc6bcec0a45ef592cd68460c3f04 (patch)
treef0b169818ad0d4e9d68c2307fc71449a5ce2c9d3 /core/Tracker/Visit.php
parent21c08d67774bf3033ee0ee077ab426205461caf7 (diff)
as vs. AS in foreach loops
Diffstat (limited to 'core/Tracker/Visit.php')
-rw-r--r--core/Tracker/Visit.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/Tracker/Visit.php b/core/Tracker/Visit.php
index 072acf4efa..5bd716db67 100644
--- a/core/Tracker/Visit.php
+++ b/core/Tracker/Visit.php
@@ -242,7 +242,7 @@ class Visit implements VisitInterface
$visitor->setVisitorColumn('time_spent_ref_action', $this->visitorInfo['time_spent_ref_action']);
// update visitorInfo
- foreach ($valuesToUpdate AS $name => $value) {
+ foreach ($valuesToUpdate as $name => $value) {
$this->visitorInfo[$name] = $value;
}
@@ -450,7 +450,7 @@ class Visit implements VisitInterface
AND idvisit = ?";
// build sql query
$updateParts = $sqlBind = array();
- foreach ($valuesToUpdate AS $name => $value) {
+ foreach ($valuesToUpdate as $name => $value) {
// Case where bind parameters don't work
if(strpos($value, $name) !== false) {
//$name = 'visit_total_events'