summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-08-11 07:45:45 +0000
committerDries Buytaert <dries@buytaert.net>2009-08-11 07:45:45 +0000
commitdaa26f7982cec0b3101103ef0b89b3c2eded5cfb (patch)
tree3c6c0dde14f5bee175741dd4390d5ec91143ad03 /modules
parente66d0b7519090a6d1bbe6fedd8b275ad5703643f (diff)
downloadbrdo-daa26f7982cec0b3101103ef0b89b3c2eded5cfb.tar.gz
brdo-daa26f7982cec0b3101103ef0b89b3c2eded5cfb.tar.bz2
- Patch #536768 by chx: use the database to do type casting so we can clean up some code. ;-)
Diffstat (limited to 'modules')
-rw-r--r--modules/book/book.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/book/book.module b/modules/book/book.module
index 62fc55aae..af5b51e9d 100644
--- a/modules/book/book.module
+++ b/modules/book/book.module
@@ -1177,7 +1177,7 @@ function book_menu_subtree_data($item) {
// If the subtree data was not in the cache, $data will be NULL.
if (!isset($data)) {
- $query = db_select('menu_links', 'ml');
+ $query = db_select('menu_links', 'ml', array('fetch' => PDO::FETCH_ASSOC));
$menu_router_alias = $query->join('menu_router', 'm', 'm.path = ml.router_path');
$book_alias = $query->join('book', 'b', 'ml.mlid = b.mlid');
$query->fields($book_alias);