DataObjects/Core_notify.php
[Pman.Core] / GoogleKey.php
index 7d5d8bd..348bfcf 100644 (file)
@@ -14,10 +14,18 @@ class Pman_Core_GoogleKey extends Pman
         
         $this->authUser = $au;
     }
+    function get() {
+        // for testing..
+        return $this->post();
+    }
     
     function post()
     {
-        $key = HTML_FlexyFramework::get()->Pman_Core['googlekey'];
+        $pc = HTML_FlexyFramework::get()->Pman_Core;
+        if (empty($pc['googlekey'])) {
+            $this->jerr("Google API Key not configured");
+        }
+        $key = $pc['googlekey'];
         $this->jdata($key);
         
     }