In the same spirit of this bug the code from

function session_limit_settings_byrole() {
  $result = db_query('SELECT name, value FROM {variable} WHERE name LIKE "session_limit_rid_%" ORDER BY name');

must be replaced with

  $result = db_query("SELECT name, value FROM {variable} WHERE name LIKE 'session_limit_rid_%' ORDER BY name");

same for

db_query('DELETE FROM {variable} WHERE name LIKE "session_limit_rid_%"');

Probably this applies to D7 too.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

johnennew’s picture

Version: 6.x-2.2 » 6.x-2.x-dev
Status: Active » Needs review
FileSize
1.11 KB

patch attached. Note this is not an issue in 7.x-2.x branch.

johnennew’s picture

Status: Needs review » Fixed

Tests pass - committing to 6.x-2.x

Status: Fixed » Closed (fixed)

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

Anonymous’s picture

Issue summary: View changes

Added another sentence with problems.