Updating nodes through node_save when not creating new revisions generates undefined property notices:
Undefined property: stdClass::$revision File /var/www/html/ecl/docroot/sites/all/modules/contrib/uuid/uuid.module, line 60(file: /var/www/html/ecl/docroot/sites/all/modules/contrib/uuid/uuid.module, line 60)
The test on that line should be !empty($node->revision) rather than simply $node->revision.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | uuid_notice.patch | 988 bytes | mikeryan |
Comments
Comment #1
mikeryanPatch attached.
Comment #2
recidive commentedHi, thanks for the patch.
I think it's better using isset() rather than !empty() in this case. Can you test with isset() and see if it solves the problem you outlined?
Thanks.
Comment #3
mikeryanThat works fine for us as well, thanks.
Comment #4
recidive commentedThanks. I've commited the isset() fix to 6.1.x.