From 897445bba3a3f62fe154547eda48cfd644554bb1 Mon Sep 17 00:00:00 2001 From: Yuriy Pikhtarev Date: Fri, 5 May 2017 01:00:57 +0300 Subject: [PATCH] 'array_push(...)' misused. --- library/includes/bbcode.php | 2 +- library/includes/template.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/library/includes/bbcode.php b/library/includes/bbcode.php index 5d68d0308..cfa90b1c3 100644 --- a/library/includes/bbcode.php +++ b/library/includes/bbcode.php @@ -256,7 +256,7 @@ function strip_quotes($text) if ($stacksize == 0) { $newtext .= substr($text, $substr_pos, $pos - $substr_pos); } - array_push($stack, $pos); + $stack[] = $pos; } else { // pop off the latest opened tag if ($stacksize) { diff --git a/library/includes/template.php b/library/includes/template.php index e337c1bb4..58eba0ed3 100644 --- a/library/includes/template.php +++ b/library/includes/template.php @@ -907,7 +907,7 @@ class template break; case '(': - array_push($is_arg_stack, $i); + $is_arg_stack[] = $i; break; case 'is':