Commit 8cffc845 authored by KpuTuK's avatar KpuTuK

Added check condition

parent 10610b2f
......@@ -1225,7 +1225,9 @@ class MysqliDb
$joinStr = $joinTable;
}
$this->_query .= " " . $joinType . " JOIN " . $joinStr . " " . $joinCondition;
$this->_query .= " " . $joinType . " JOIN " . $joinStr .
(false === stripos('using', $joinCondition) ? " " : " on ")
. $joinCondition;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment