mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-22 14:23:57 -07:00
Miscellaneous static analysis improvements for php 7.1 (#620)
* Miscellaneous static analysis improvements for php 7.1 * Update changes.txt
This commit is contained in:
parent
4e8e181d8c
commit
7019d31353
37 changed files with 156 additions and 151 deletions
|
@ -290,7 +290,7 @@ function strip_bbcode($message, $stripquotes = true, $fast_and_dirty = false, $s
|
|||
if ($fast_and_dirty) {
|
||||
// any old thing in square brackets
|
||||
$find[] = '#\[.*/?\]#siU';
|
||||
$replace = '';
|
||||
$replace = [];
|
||||
|
||||
$message = preg_replace($find, $replace, $message);
|
||||
} // the preferable way to remove bbcode
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue