'(mb_)substr(...)' used as index-based access.

(cherry picked from commit e89f017)
This commit is contained in:
Yuriy Pikhtarev 2017-05-05 01:01:29 +03:00 committed by Vasily Komrakov
commit 5dd290f2b2
No known key found for this signature in database
GPG key ID: 558236680C20A69A
5 changed files with 27 additions and 23 deletions

View file

@ -83,7 +83,7 @@ function init_display_template($template_var, $replacement, $filename = 'viewtop
}
$complete_filename = $filename;
if (substr($complete_filename, 0, 1) != '/') {
if ($complete_filename[0] != '/') {
$complete_filename = $template->root . '/' . $complete_filename;
}