Notice about incorrect "current" function usage in kDBConnection class

2 views
Skip to first unread message

Alexander Obuhovich

unread,
May 17, 2012, 4:14:47 AM5/17/12
to In-Portal Bugs
I'm seeing notice, that php can't pass argument by reference each time, when I use $this->Conn->GetOne method and debug mode is enabled.

This is happening, because we us current(current($ret)) construct and "current" function tries to modify given argument, which is not a variable, but a function result.



Ready for testing.
notice_for_db_getone_calls_in_debug_mode.patch
Reply all
Reply to author
Forward
0 new messages