From 1d5cca34efcd25473f00ed5d6594ea15c569622f Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Tue, 3 Mar 2009 04:17:55 +0000 Subject: If backticks (`) are used to delimit the name of the table in database, Kohana gets confused an appends the prefix outside of the back ticks --- core/helpers/access.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/helpers') diff --git a/core/helpers/access.php b/core/helpers/access.php index a759fca1..a2b3a761 100644 --- a/core/helpers/access.php +++ b/core/helpers/access.php @@ -155,7 +155,7 @@ class access_Core { $lock = ORM::factory("item") ->where("`left` <= $item->left") ->where("`right` >= $item->right") - ->where("`items`.`id` <> $item->id") + ->where("items.id <> $item->id") ->join("access_intents", "items.id", "access_intents.item_id") ->where("access_intents.view_$group->id", 0) ->orderby("level", "DESC") -- cgit v1.2.3