Closed (fixed)
Project:
Masquerade
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 Feb 2011 at 08:39 UTC
Updated:
7 Jun 2014 at 20:59 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
Renderintent commentedMy example shows the fixed version, here is the original ;-)
Comment #2
bfroehle commentedIf this is a bug, the correct fix would be to use
fetchField(), notfetchColumn()?Comment #3
bfroehle commentedPatch attached, using fetchField() for most (but not all!) instances of fetchCol(). In general, we call fetchField() when we just want one value out of the database query, and fetchCol() when we want a whole array.
From http://drupal.org/node/310072:
Comment #4
pmorel commentedThis patch fix the issue where users are always masquerading themselves (tested only for the admin user)
Comment #5
andyposthttp://drupalcode.org/project/masquerade.git/commit/dfaf124