From b9d00bdb9b6a6ba3eeb9cc29ec34145c18fc75da Mon Sep 17 00:00:00 2001 From: Yuriy Pikhtarev Date: Fri, 5 May 2017 01:02:11 +0300 Subject: [PATCH] 'substr(...)' short-hand usage. --- library/includes/template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/includes/template.php b/library/includes/template.php index 44e5f8655..8f16f1311 100644 --- a/library/includes/template.php +++ b/library/includes/template.php @@ -491,7 +491,7 @@ class template public function generate_block_varref($namespace, $varname): string { // Strip the trailing period. - $namespace = substr($namespace, 0, strlen($namespace) - 1); + $namespace = substr($namespace, 0, -0); // Get a reference to the data block for this namespace. $varref = $this->generate_block_data_ref($namespace, true);