From 2b87349e7d91fc358e56e8164b67f93b0ed277ce Mon Sep 17 00:00:00 2001 From: frytimo Date: Thu, 4 Jul 2024 12:12:34 -0300 Subject: [PATCH] remove the manual inclusion of classes to let autoloader handle it (#7033) By including the class manually with the include statement, the class has a possibility of loading twice. This will cause a fatal error if classes are already loaded. --- app/call_forward/call_forward_edit.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/app/call_forward/call_forward_edit.php b/app/call_forward/call_forward_edit.php index 873ce77372..31d2b28c25 100644 --- a/app/call_forward/call_forward_edit.php +++ b/app/call_forward/call_forward_edit.php @@ -165,11 +165,6 @@ return; } - //include the classes - include "resources/classes/call_forward.php"; - include "resources/classes/follow_me.php"; - include "resources/classes/do_not_disturb.php"; - //call forward config if (permission_exists('call_forward')) { //sanitize the destinations