From d477ffd57522ca0698fc92e4ab5a767b2fba95ac Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Wed, 4 Mar 2009 18:58:32 +0000 Subject: Annotate local fix for Kohana ticket #1156 --- kohana/libraries/Database.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'kohana/libraries/Database.php') 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 -- cgit v1.2.3