X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=application%2Fship-simu%2Fexceptions%2Fclass_ContractAllreadySignedException.php;h=791922220aeb80716d7ee3fbd284e17c0cf8e913;hb=86553167136d11d44e1d938e964134c038785e3e;hp=3c11743b4c64f690b64d3d2bdc00c16d4832b3ee;hpb=1d128d8532290e84885d09d2d3f0060abd08e49e;p=shipsimu.git diff --git a/application/ship-simu/exceptions/class_ContractAllreadySignedException.php b/application/ship-simu/exceptions/class_ContractAllreadySignedException.php index 3c11743..7919222 100644 --- a/application/ship-simu/exceptions/class_ContractAllreadySignedException.php +++ b/application/ship-simu/exceptions/class_ContractAllreadySignedException.php @@ -6,7 +6,7 @@ * @version 0.0.0 * @copyright Copyright(c) 2007, 2008 Roland Haeder, this is free software * @license GNU GPL 3.0 or any newer version - * @link http://www.ship-simu.org + * @link http://www.ship-simu.org * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -23,11 +23,8 @@ */ class ContractAllreadySignedException extends FrameworkException { public function __construct (array $classArray, $code) { - // Cast the array - $classArray = (array) $classArray; - // Add a message around the missing class - $message = sprintf("[%s:] Die Vertragsparteien %s und %s haben den Vertrag bereits unterzeichnet!", + $message = sprintf("[%s:] Die Vertragsparteien %s und %s haben den Vertrag bereits unterzeichnet!", $classArray[0]->__toString(), $classArray[1]->getCompanyName(), $classArray[2]->getCompanyName()