X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=blobdiff_plain;f=RunGenerator.php;h=3a4516a69ed668e66d3fbc22d846fd9ec8a6b5e7;hp=7f3b65dce8f22876d859ae5405e5bcb0c7d3f195;hb=HEAD;hpb=355aded3ed8c83b937a2e9284a19fd9604e1dfce diff --git a/RunGenerator.php b/RunGenerator.php index 7f3b65dc..39112559 100644 --- a/RunGenerator.php +++ b/RunGenerator.php @@ -56,16 +56,16 @@ 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['n'])) { + if (empty($opts['noupdate'])) { HTML_FlexyFramework::run('Core/UpdateDatabase'); }