DataObjects/Person.php
authorAlan Knowles <alan@akbkhome.com>
Tue, 22 May 2012 02:08:14 +0000 (10:08 +0800)
committerAlan Knowles <alan@akbkhome.com>
Tue, 22 May 2012 02:08:14 +0000 (10:08 +0800)
DataObjects/Person.php

index cabf165..fcbe2da 100644 (file)
@@ -574,7 +574,7 @@ class Pman_Core_DataObjects_Person extends DB_DataObject
             if ( $q['query']['not_in_directory'] > -1) {
                 $tn_pd = DB_DataObject::Factory('ProjectDirectory')->tableName();
                 // can list current - so that it does not break!!!
-                $x->whereAdd("$tn_p.id NOT IN 
+                $this->whereAdd("$tn_p.id NOT IN 
                     ( SELECT distinct person_id FROM $tn_pd WHERE
                         project_id = " . $q['query']['not_in_directory'] . " AND 
                         company_id = " . $this->company_id . ')');