summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--kohana/libraries/Database.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/kohana/libraries/Database.php b/kohana/libraries/Database.php
index 0e02ec59..c1ff0764 100644
--- a/kohana/libraries/Database.php
+++ b/kohana/libraries/Database.php
@@ -299,7 +299,9 @@ class Database_Core {
{
if (preg_match('/^DISTINCT\s++(.+)$/i', $val, $matches))
{
+ /* ****** Begin Gallery 3 Local Change *********** */
$val = (strpos($matches[1], '.') !== FALSE) ? $this->config['table_prefix'].$matches[1] : $matches[1];
+ /* ****** End Gallery 3 Local Change *********** */
$this->distinct = TRUE;
}
else