Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
user.module
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
12 Jan 2011 at 01:08 UTC
Updated:
3 Jan 2014 at 02:41 UTC
Jump to comment: Most recent
Comments
Comment #1
pillarsdotnet commentedtagging.
Comment #2
bfroehle commentedLine that referenced
$tablewas removed in #721436: Remove magical fairy saving of cruft from user_save().Comment #3
pillarsdotnet commentedYup; right here.
Comment #4
jhodgdonThis patch is certainly fine. $table is not used anywhere else in that function.
I guess that the call to drupal_get_schema() could have the side effect of calling all the hook_schema() and hook_schema_alter() implementations to compile the schema. However, that would happen only if the schema wasn't already cached. And anyway obviously it's not used in this function, so it should not be a problem to wait until something else needs the schema. And as noted in #2/#3, it was apparently just an oversight from a previous patch that removed the use of $table without removing the generation of it.
Comment #5
dries commentedGood catch. Committed to CVS HEAD. Thanks.