From e208cdc5e224beb2a7b4e49138d1c2a8c3f9b0a0 Mon Sep 17 00:00:00 2001 From: lub Date: Wed, 28 Aug 2019 11:55:44 +0200 Subject: [PATCH] fixup! replace preg_replace with preg_replace_callback /e is not supported starting with php 7.0 --- main.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.php b/main.php index 83b2b61..6561d27 100644 --- a/main.php +++ b/main.php @@ -39,8 +39,8 @@ while(true) { $regex = '#([0-9]{1,3})#'; $callback = function ($matches) { return $matches[0]+1; - } - $newName = preg_replace($regex, $callback, $group['channel_name']); + }; + $newName = preg_replace_callback($regex, $callback, $group['channel_name']); createChannel($server, $newName, $sub, $options); } }