parent::getAuth(); // load company!
$au = $this->getAuthUser();
if (!$au) {
- $this->jerr("Not authenticated", array('authFailure' => true));
+ $this->jerror("LOGIN-NOAUTH", "Not authenticated", array('authFailure' => true));
}
if ($au->company()->comptype !='OWNER') {
);
}
- if (isset($_GET['_sort'])) {}
+
+ if (isset($_GET['_sort'])) {
foreach ($ar as $key => $row) {
$shortname[$key] = $row['shortname'];
$descript[$key] = $row['descript'];
array_multisort($shortname, SORT_ASC, $descript, SORT_ASC, $ar);
}
+
$this->jdata($ar);