From c3b2f9d764b7ec710c4aff8e6e74a9c6bb7e27ae Mon Sep 17 00:00:00 2001 From: osaajani <> Date: Fri, 24 Feb 2023 19:08:48 +0100 Subject: [PATCH] Accept update status phone for phone without real status --- controllers/publics/Api.php | 9 --------- 1 file changed, 9 deletions(-) diff --git a/controllers/publics/Api.php b/controllers/publics/Api.php index 064c8f4..c2e0636 100644 --- a/controllers/publics/Api.php +++ b/controllers/publics/Api.php @@ -1032,15 +1032,6 @@ namespace controllers\publics; //Check adapter is working correctly with thoses names and data $adapter_classname = $phone['adapter']; - if (!call_user_func([$adapter_classname, 'meta_support_phone_status'])) - { - $return['error'] = self::ERROR_CODES['CANNOT_UPDATE']; - $return['message'] = self::ERROR_MESSAGES['CANNOT_UPDATE']; - $this->auto_http_code(false); - - return $this->json($return); - } - $adapter_instance = new $adapter_classname($phone['adapter_data']); $new_status = $adapter_instance->check_phone_status();