diff options
author | Dries Buytaert <dries@buytaert.net> | 2005-05-17 20:24:33 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2005-05-17 20:24:33 +0000 |
commit | a5489b7b1c1df8f202eb4248537d5bb3da515f09 (patch) | |
tree | 1804caac553111774d048a4ccd9065ef6bf0ed27 /modules/node.module | |
parent | ecd7cfed480f18f76072e556a1f99d4c40cb6334 (diff) | |
download | brdo-a5489b7b1c1df8f202eb4248537d5bb3da515f09.tar.gz brdo-a5489b7b1c1df8f202eb4248537d5bb3da515f09.tar.bz2 |
- Patch by chx: added a db_rewrite_sql() in node_load() just to make sure.
Diffstat (limited to 'modules/node.module')
-rw-r--r-- | modules/node.module | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/node.module b/modules/node.module index 2066c6e35..7e5ad8a7c 100644 --- a/modules/node.module +++ b/modules/node.module @@ -388,7 +388,7 @@ function node_load($conditions, $revision = NULL, $reset = NULL) { } // Retrieve the node. - $node = db_fetch_object(db_query('SELECT n.*, u.uid, u.name, u.picture, u.data FROM {node} n INNER JOIN {users} u ON u.uid = n.uid WHERE '. implode(' AND ', $cond))); + $node = db_fetch_object(db_query(db_rewrite_sql('SELECT n.*, u.uid, u.name, u.picture, u.data FROM {node} n INNER JOIN {users} u ON u.uid = n.uid WHERE '. implode(' AND ', $cond)))); $node = drupal_unpack($node); // Unserialize the revisions and user data fields. |