Issue Bug Closed

#15007t3lib_svbase: Method init returns wrong value

Thorsten Kahler 10/05/05, 16:49 updated 07/02/10, 11:19

Description

The method t3lib_svbase::init() should, according to inline documentation and usage in tslib_div::makeInstanceService() return a boolean value.

In case of an error the method returns the last error code instead of boolean false. Using this default implementation as template results in always signaling a service to be available.

Look at t3lib_svbase::init()

Change the last line to
return ( true === $this->getLastError() );
(issue imported from #M1527)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.