diff options
author | Matthieu Aubry <mattab@users.noreply.github.com> | 2016-12-02 07:32:03 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-02 07:32:03 +0300 |
commit | 95dff7b6812f54c1afc67d6781a5d01d47c3ca60 (patch) | |
tree | 3c49147c490360c0d436dba0e1c9690d9978bd0b /core/DataAccess/LogQueryBuilder/JoinGenerator.php | |
parent | 28409d4c92f46ce3b250501c769bb08ebb26884c (diff) | |
parent | 59ba07cba11cd51a49ba5a4946abee0d34c4c7a9 (diff) |
Merge pull request #10945 from piwik/3.x-dev3.0.0-b4
Piwik 3.0.0-b4 release
Diffstat (limited to 'core/DataAccess/LogQueryBuilder/JoinGenerator.php')
-rw-r--r-- | core/DataAccess/LogQueryBuilder/JoinGenerator.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/core/DataAccess/LogQueryBuilder/JoinGenerator.php b/core/DataAccess/LogQueryBuilder/JoinGenerator.php index 1bd3ab3912..7b69184f0b 100644 --- a/core/DataAccess/LogQueryBuilder/JoinGenerator.php +++ b/core/DataAccess/LogQueryBuilder/JoinGenerator.php @@ -228,6 +228,13 @@ class JoinGenerator ); if (is_array($tA) && is_array($tB)) { + if (isset($tB['tableAlias']) && isset($tA['joinOn']) && strpos($tA['joinOn'], $tB['tableAlias']) !== false) { + return 1; + } + if (isset($tA['tableAlias']) && isset($tB['joinOn']) && strpos($tB['joinOn'], $tA['tableAlias']) !== false) { + return -1; + } + return 0; } |