check what is being written to our log files.
[Pman.Core] / JavascriptError.php
index ced68bd..11f4deb 100644 (file)
@@ -11,25 +11,22 @@ class Pman_Core_JavascriptError extends Pman {
         parent::getAuth(); // load company!
         $au = $this->getAuthUser();
        
-        if (!$au) {
+        if (!$au || !$au->pid()) {
             
             die("authenticated Users only");
         }
-        if (!$au->pid()   ) { // not set up yet..
-            die("authenticated Users only");
-        }
         
         
         $this->authUser = $au;
         return true;
     }
     
-    function get()
+    function get($v, $opts=array())
     {
         die("invalid url");
     }
     
-    function post()
+    function post($v)
     {
          
         $this->addEvent("JSERROR", false,$_REQUEST['msg']);