Project

General

Profile

Actions

Bug #15007

closed

t3lib_svbase: Method init returns wrong value

Added by Thorsten Kahler about 19 years ago. Updated over 14 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2005-10-05
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
3.8.0
PHP Version:
4
Tags:
Complexity:
Is Regression:
Sprint Focus:

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)

Actions #1

Updated by Martin Kutschker about 19 years ago

René, could you have a look at this?.

Actions #2

Updated by Francois Suter almost 16 years ago

Committed to 4.1 (4937), 4.2 (rev 4934) and trunk (4935).

Actions

Also available in: Atom PDF