]> git.mxchange.org Git - shipsimu.git/blobdiff - inc/classes/main/request/class_HttpRequest.php
Logout procedure basicly finished, login area splitted in main and action-dependent...
[shipsimu.git] / inc / classes / main / request / class_HttpRequest.php
index b6f9b95f46c6f2cd874228c1b2afde5532df8f1c..1a64747971beeebee8b4b22806c6031023b7fd82 100644 (file)
@@ -86,13 +86,12 @@ class HttpRequest extends BaseFrameworkSystem implements Requestable {
         * Checks wether a request element is set
         * @param       $element        Name of the request element we want to check
         * @return      $isSet          Wether the request element is set
-        * @throws      MissingArrayElementsException   Thrown if a request element is not set
         */
        public function isRequestElementSet ($element) {
                // Is this element found?
                if (!isset($this->requestData[$element])) {
-                       // Then throw an exception
-                       throw new MissingArrayElementsException(array($this, 'requestData', $element), self::EXCEPTION_MISSING_ELEMENT);
+                       // Then return false
+                       return false;
                } // END - if
 
                // All clear
@@ -110,13 +109,9 @@ class HttpRequest extends BaseFrameworkSystem implements Requestable {
                // Initialize value
                $value = null;
 
-               try {
-                       if ($this->isRequestElementSet($element)) {
+               if ($this->isRequestElementSet($element)) {
                                $value = $this->requestData[$element];
-                       } // END - if
-               } catch (MissingArrayElementsException $e) {
-                       // Do nothing here
-               }
+               } // END - if
 
                // Return the element's value
                return $value;