mirror of
https://github.com/FOSSBilling/FOSSBilling.git
synced 2026-11-21 20:34:57 +09:00
Merge pull request #772 from timothygwebb/master
Fix Servicehosting/Service.php
This commit is contained in:
2 files changed
+3
-4
No files matched your search
+1
-2
@@ -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
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user