Merge pull request #772 from timothygwebb/master

Fix Servicehosting/Service.php
This commit is contained in:
Yağızhan authored and GitHub committed 2020-11-28 08:29:26 +03:00
commit 74793dd84e
2 files changed
+3 -4

No files matched your search

+1 -2
View File
@@ -1,8 +1,7 @@
# Read documentation http://docs.boxbilling.com/ for more information
# If you are receiving "Internal Server Error" message, make sure mod_rewrite is enabled in apache
Options -Indexes
Options +FollowSymLinks
Options -Indexes +SymLinksIfOwnerMatch
RewriteEngine On
+2 -2
View File
@@ -99,8 +99,8 @@ class Service implements InjectionAwareInterface
{
$orderService = $this->di['mod_service']('order');
$model = $orderService->getOrderService($order);
if(!$model instanceof \Model_ServiceHosting) {
throw new \Box_Exception('Could not activate order. Service was not created');
if(!$model instanceof \RedBean_SimpleModel) {
throw new \Box_Exception('Order :id has no active service', array(':id'=>$order->id));
}
$pass = $this->di['tools']->generatePassword(10, 4);