Closed (fixed)
Project:
Book access
Version:
6.x-1.0-rc1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
20 Jan 2009 at 21:40 UTC
Updated:
8 Feb 2009 at 23:30 UTC
_book_access_get_book_nid() has the following code:
function _book_access_get_book_nid($nid) {
$result = db_query("SELECT bid FROM {book} WHERE nid = %d", $nid);
return db_fetch_object($result)->bid;
}
As db_fetch_object() can return FALSE, the return line tries to access a property for a value that is not an object.
Comments
Comment #1
harry slaughterComment #2
harry slaughterThis code has been removed entirely