Author: Derick Rethans
Date: 2007-02-14 18:29:47 +0100 (Wed, 14 Feb 2007)
New Revision: 4651

Log:
- Fixed issue #10247: ezcInputForm::hasGetData and ezcInputForm::hasPostData
  do not return booleans are per documentation.
#- This can not be tested with Unit Tests.

Modified:
   trunk/UserInput/ChangeLog
   trunk/UserInput/src/input_form.php

Modified: trunk/UserInput/ChangeLog
===================================================================
--- trunk/UserInput/ChangeLog   2007-02-14 09:39:45 UTC (rev 4650)
+++ trunk/UserInput/ChangeLog   2007-02-14 17:29:47 UTC (rev 4651)
@@ -3,6 +3,8 @@
 
 - Fixed issue #10002: Wrong documentation of return type for
   ezcInputForm::validateDefinition.
+- Fixed issue #10247: ezcInputForm::hasGetData and ezcInputForm::hasPostData
+  do not return booleans are per documentation.
 
 
 1.1 - Monday 18 December 2006

Modified: trunk/UserInput/src/input_form.php
===================================================================
--- trunk/UserInput/src/input_form.php  2007-02-14 09:39:45 UTC (rev 4650)
+++ trunk/UserInput/src/input_form.php  2007-02-14 17:29:47 UTC (rev 4651)
@@ -181,7 +181,7 @@
      */
     static public function hasGetData()
     {
-        return count( $_GET );
+        return count( $_GET ) > 0;
     }
 
     /**
@@ -191,7 +191,7 @@
      */
     static public function hasPostData()
     {
-        return count( $_POST );
+        return count( $_POST ) > 0;
     }
 
     /**

-- 
svn-components mailing list
svn-components@lists.ez.no
http://lists.ez.no/mailman/listinfo/svn-components

Reply via email to