diff options
author | Daniel <darthdaniel85@gmail.com> | 2013-12-02 12:25:10 -0500 |
---|---|---|
committer | Daniel <darthdaniel85@gmail.com> | 2013-12-02 12:25:10 -0500 |
commit | bc738b910f44ed6998dc2d181fb284f029a9a4d2 (patch) | |
tree | 1940c1a2347640c85713a8da3531bacade8f4516 /framework/Wsat/TWsatARGenerator.php | |
parent | 22276c273cc158cf12fd7b63e581b08cdae7b6f1 (diff) |
Removing unnecessary dependencies!
Diffstat (limited to 'framework/Wsat/TWsatARGenerator.php')
-rw-r--r-- | framework/Wsat/TWsatARGenerator.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/framework/Wsat/TWsatARGenerator.php b/framework/Wsat/TWsatARGenerator.php index 5c812ef5..d5b87a4f 100644 --- a/framework/Wsat/TWsatARGenerator.php +++ b/framework/Wsat/TWsatARGenerator.php @@ -52,6 +52,8 @@ class TWsatARGenerator function __construct() { + if(!class_exists("TActiveRecordManager", false)) + throw new Exception("You need to enable the ActiveRecord module in your application configuration file."); $ar_manager = TActiveRecordManager::getInstance(); $this->_conn = $ar_manager->getDbConnection(); $this->_conn->Active = true; |