From 29a2b12f5858b263d7bfe3a599007281f8937095 Mon Sep 17 00:00:00 2001 From: Bram Gerritsen Date: Wed, 5 Sep 2018 11:27:10 +0200 Subject: [PATCH] Fix autoloading issue If you trigger `class_exists` by default autoloader will be started which causes the following exception `Warning: include(MplusQAPIException.php): failed to open stream: No such file or directory`. Only check if the class already exists but never try to autoload it will fix this issue. --- Mplusqapiclient.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Mplusqapiclient.php b/Mplusqapiclient.php index 3dca548..a7c3847 100755 --- a/Mplusqapiclient.php +++ b/Mplusqapiclient.php @@ -6557,7 +6557,7 @@ public function convertButtonLayoutRequest($terminal) //------------------------------------------------------------------------------ -if ( ! class_exists('MplusQAPIException')) { +if ( ! class_exists('MplusQAPIException', false)) { class MplusQAPIException extends Exception {