summaryrefslogtreecommitdiff
path: root/core/helpers
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-03-03 04:17:55 +0000
committerTim Almdal <tnalmdal@shaw.ca>2009-03-03 04:17:55 +0000
commit1d5cca34efcd25473f00ed5d6594ea15c569622f (patch)
treecb709ae8e68c109e72a023f4b9be90c0c6089c9c /core/helpers
parent7bcab31f5d982f8197045ee8499fe6e23635e8e4 (diff)
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
Diffstat (limited to 'core/helpers')
-rw-r--r--core/helpers/access.php2
1 files changed, 1 insertions, 1 deletions
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")