if (!isset($_SERVER['PHP_AUTH_USER'])) {
$this->h401();
}
- $u = DB_DataObject::factory('Person');
+ $u = DB_DataObject::factory('core_person');
//$u->active = 1;
$u->whereAdd('LENGTH(passwd) > 1');
//$u->company_id = $this->company->id;
$t->find();
$ret = array();
- while ($this->fetch()) {
- $ret[] = $o->toArray('%s', 0);
- }
-
+ while ($t->fetch()) {
+ $ret[] = $t->toArray('%s', 0);
}
+
// print_R($ar);
$this->jok($ret);
$this->jok("WORKED!");