I get this error

warning: in_array(): Wrong datatype for second argument in /srv/www/apps/drupal/drupal-6.contrib/modules/securesite/securesite.module on line 188.

after upgrading from D5:

      if (in_array(SECURESITE_DIGEST, variable_get('securesite_type', array(SECURESITE_BASIC))) && ...

The securesite_type variable is a string in D5 (s:16:"SECURESITE_BASIC";), not an array.

It should be converted in a hook_update_N() function.

Comments

darren oh’s picture

Status: Active » Fixed

Fixed in CVS commit 163646.

summit’s picture

Hi,
I got this error from the 2.1 version.
Could you please also file a 2.11 or 2.2 version with this error corrected.
I can't see a .dev of this module, thats why I ask.

Thanks a lot in advance for considering this!
greetings,
Martijn

darren oh’s picture

Done.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

summit’s picture

Version: 6.x-2.1 » 6.x-2.2
Status: Closed (fixed) » Active

Hi,
Still having this issue in 2.2, dev version date is much older, so I expect 2.2 is the newest right?

warning: in_array() [function.in-array]: Wrong datatype for second argument in /sites/all/modules/securesite/securesite.module on line 188

greetings,
Martijn

darren oh’s picture

Status: Active » Closed (fixed)

The dev version always has the latest code.

  • Commit 3726b16 on 6.x-2.x, 7.x-2.x, 8.x-1.x by Darren Oh:
    #353216 by salvis: Fixed data type in securesite_update_6200().   This...
  • Commit af0c8b0 on 6.x-2.x, 7.x-2.x, 8.x-1.x by Darren Oh:
    #353216 by Darren Oh: Added 6.x-2.2 release.