diff options
| author | Igor Wiedler <igor@wiedler.ch> | 2012-07-21 18:24:24 +0200 |
|---|---|---|
| committer | Igor Wiedler <igor@wiedler.ch> | 2012-07-21 18:24:24 +0200 |
| commit | cb102c695408a3ef82146aa834b441adc8564f51 (patch) | |
| tree | b18aadd4e8c085afa82b881b1f447f8ec3d58992 | |
| parent | 83bdf3eeb31d202f6806cacda66d039ae7c74dc2 (diff) | |
| download | forums-cb102c695408a3ef82146aa834b441adc8564f51.tar forums-cb102c695408a3ef82146aa834b441adc8564f51.tar.gz forums-cb102c695408a3ef82146aa834b441adc8564f51.tar.bz2 forums-cb102c695408a3ef82146aa834b441adc8564f51.tar.xz forums-cb102c695408a3ef82146aa834b441adc8564f51.zip | |
[ticket/11015] Correctly set sql_layer in driver base class
PHPBB3-11015
| -rw-r--r-- | phpBB/includes/db/driver/driver.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/db/driver/driver.php b/phpBB/includes/db/driver/driver.php index 39211a5af4..9692ee71b9 100644 --- a/phpBB/includes/db/driver/driver.php +++ b/phpBB/includes/db/driver/driver.php @@ -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) . '%'; |
