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

CommentFileSizeAuthor
#3 locale_19.patch529 byteskeve
locale_18.patch528 byteskeve
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

keve’s picture

Version: 4.7.2 » x.y.z
webchick’s picture

Probably should be if !$cache, no..?

keve’s picture

FileSize
529 bytes

Sorry, I mistyped it.

Dries’s picture

Did 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.)

keve’s picture

I tested, it runs well, when locale:{lang} does not exist in cache in database.

keve’s picture

Can it be commited to HEAD?

drumm’s picture

Status: Needs review » Fixed

This looks consistent enough with other uses of cache_get().

Committed to HEAD.

Anonymous’s picture

Status: Fixed » Closed (fixed)