looking for wrong seperator
[Pman.Core] / JavascriptError.php
index 9338082..11f4deb 100644 (file)
@@ -11,12 +11,9 @@ class Pman_Core_JavascriptError extends Pman {
         parent::getAuth(); // load company!
         $au = $this->getAuthUser();
        
-        if (!$au) {
+        if (!$au || !$au->pid()) {
             
-            $this->jerr("Not authenticated", array('authFailure' => true));
-        }
-        if (!$au->pid()   ) { // not set up yet..
-            $this->jerr("Not authenticated", array('authFailure' => true));
+            die("authenticated Users only");
         }
         
         
@@ -24,8 +21,12 @@ class Pman_Core_JavascriptError extends Pman {
         return true;
     }
     
+    function get($v, $opts=array())
+    {
+        die("invalid url");
+    }
     
-    function get()
+    function post($v)
     {
          
         $this->addEvent("JSERROR", false,$_REQUEST['msg']);