Code style changed, ext-user continued:
[mailer.git] / inc / request-functions.php
index e0051a169edc6da09958b57ae5ac2276f48452b9..f8c84e627046ffb65eb13c46275445ac41e9f24e 100644 (file)
@@ -90,7 +90,7 @@ function getRequestArray () {
 // Counts entries in $_GET or returns false if not an array
 function countRequestGet () {
        // By default this is not an array
-       $count = false;
+       $count = FALSE;
 
        // Get the array
        $GET = getRequestArray();
@@ -160,7 +160,8 @@ function isPostRequestElementSet ($element, $subElement = NULL) {
         * a string as numerical indexes are not wanted in POST data (in this
         * project).
         */
-       assert(is_string($element) && ((is_null($subElement)) || (is_string($subElement)) || (is_int($subElement))));
+       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'element[]=' . gettype($element) . ',subElement[]=' . gettype($subElement));
+       assert(is_string($element) && ((is_null($subElement)) || (is_string($subElement)) || (is_int($subElement)) || (is_double($subElement))));
 
        // Is a sub element set?
        if (is_null($subElement)) {
@@ -191,7 +192,7 @@ function setPostRequestArray ($postData) {
 // Counts entries in $_POST or returns false if not an array
 function countRequestPost () {
        // By default this is not an array
-       $count = false;
+       $count = FALSE;
 
        // Get the array
        $postData = postRequestArray();