Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I get message in my php log:
Notice: Object of class stdClass could not be converted to int in J:\_Webserver\cvs\modules\locale.module on line 181
Comment | File | Size | Author |
---|---|---|---|
#3 | locale_19.patch | 529 bytes | keve |
locale_18.patch | 528 bytes | keve | |
Comments
Comment #1
keve CreditAttribution: keve commentedComment #2
webchickProbably should be if !$cache, no..?
Comment #3
keve CreditAttribution: keve commentedSorry, I mistyped it.
Comment #4
Dries CreditAttribution: Dries commentedDid you verify that the check works properly? That is, we don't always take the slow path, do we? (I think all is well, just making sure.)
Comment #5
keve CreditAttribution: keve commentedI tested, it runs well, when locale:{lang} does not exist in cache in database.
Comment #6
keve CreditAttribution: keve commentedCan it be commited to HEAD?
Comment #7
drummThis looks consistent enough with other uses of cache_get().
Committed to HEAD.
Comment #8
(not verified) CreditAttribution: commented