X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=blobdiff_plain;f=RunGenerator.php;h=3a4516a69ed668e66d3fbc22d846fd9ec8a6b5e7;hp=a5b3e99a118a4874b98dfb69e9b077334ae92689;hb=HEAD;hpb=c1b292b89d8d460787b298e598070a74dc160be9 diff --git a/RunGenerator.php b/RunGenerator.php index a5b3e99a..39112559 100644 --- a/RunGenerator.php +++ b/RunGenerator.php @@ -56,13 +56,13 @@ class Pman_Core_RunGenerator extends Pman parent::getAuth(); // load company! $au = $this->getAuthUser(); if (!$au || $au->company()->comptype != 'OWNER') { - $this->jerr("Not authenticated", array('authFailure' => true)); + $this->jerror("LOGIN-NOAUTH", "Not authenticated", array('authFailure' => true)); } $this->authUser = $au; return true; } - function get($args, $opts) + function get($args, $opts=array()) { //print_r($opts);exit; if (empty($opts['noupdate'])) {