Application cleanup

This commit is contained in:
Deon George
2013-05-10 20:48:10 +10:00
parent 970b2ef4f0
commit c0ba6d4e98
36 changed files with 284 additions and 544 deletions

View File

@@ -97,7 +97,7 @@ class Model_Account extends Model_Auth_UserDefault {
}
public function log($message) {
// Log the logout
// Log a message for this account
$alo = ORM::factory('Account_Log');
$alo->account_id = $this->id;
$alo->ip = Request::$client_ip;
@@ -147,7 +147,7 @@ class Model_Account extends Model_Auth_UserDefault {
return $active ? $o->where_active()->find_all() : $o->find_all();
}
public function services_count($active=TRUE,$afid=NULL) {
public function services_count($active=TRUE) {
return $this->services($active)->count();
}