1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-02-24 20:13:22 +01:00

[ticket/11015] Correctly set sql_layer in driver base class

PHPBB3-11015
This commit is contained in:
Igor Wiedler 2012-07-21 18:24:24 +02:00
parent 83bdf3eeb3
commit cb102c6954

View File

@ -82,7 +82,7 @@ class phpbb_db_driver
// Fill default sql layer based on the class being called.
// This can be changed by the specified layer itself later if needed.
$this->sql_layer = substr(get_class($this), 5);
$this->sql_layer = substr(get_class($this), strlen('phpbb_db_driver_'));
// Do not change this please! This variable is used to easy the use of it - and is hardcoded.
$this->any_char = chr(0) . '%';