]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/action.php
convert html-generation functions to use XMLWriter
[quix0rs-gnu-social.git] / lib / action.php
index c882f0696efe3cc291771c682aee6c10cbbdbddf..c3eacf44eddd9834cc26fb7590388ae4194391fd 100644 (file)
@@ -27,16 +27,16 @@ class Action { // lawsuit
        }
        
        function arg($key) {
-               if (array_has_key($this->args, $key)) {
+               if (array_key_exists($key, $this->args)) {
                        return $this->args[$key];
                } else {
                        return NULL;
                }
        }
        
-       function handle($args) {
+       function handle($argarray) {
                $this->args = array();
-               foreach ($args as $k => $v) {
+               foreach ($argarray as $k => $v) {
                        $this->args[$k] = $v;
                }
        }