[TYPO3-core] FYI #16598: Login via OpenID is impossible
Steffen Gebert
steffen at steffen-gebert.de
Tue Nov 30 09:26:54 CET 2010
Hi!
This patch has been committed to svn trunk rev. 9680
Type: Bugfix
Bugtracker reference:
http://bugs.typo3.org/view.php?id=16598
Branches:
trunk
Problem:
OpenID login doesn't work since #16445, which replaced
exec_SELECTgetRows with exec_SELECTgetSingleRow.
There was one place in core (i checked all..), where exec_SELECTgetRows
used 6 parameters:
$row = $GLOBALS['TYPO3_DB']->exec_SELECTgetRows(
'uid, content',
self::ASSOCIATION_TABLE_NAME,
$where,
'',
$sort,
'1');
The 6th parameter for getRows meant: limit = 1 (so it was perfect to
replace this call with the new getSingleRow.
However, unlike the first 5 paramters, the 6th has not the same meaning,
but is $numeric, which uses mysql_fetch_row() instead of
mysql_fetch_assoc(), thus returning a numeric array instead of an
associative one - resulting in access to $row['content'] to fail.
Solution:
Puhh.. tough patch ;-)
Remove parameter '1'
Kind regards
Steffen
--
Steffen Gebert
TYPO3 Core Team Member
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 16598.diff
Type: text/x-diff
Size: 650 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20101130/51ca22bb/attachment-0001.diff>
More information about the TYPO3-team-core
mailing list