bug 1137: Fix typo in check_date_difference
authorBenny Baumann <BenBE@geshi.org>
Mon, 22 Jul 2013 04:30:30 +0000 (06:30 +0200)
committerBenny Baumann <BenBE@geshi.org>
Mon, 22 Jul 2013 04:30:30 +0000 (06:30 +0200)
includes/notary.inc.php
www/wot.php

index 508b6ad..32839fe 100644 (file)
        }
 
        /**
-        * check_date_differnce()
+        * check_date_difference()
         * returns false if the date is larger then today + time diffrence
         *
         * @param mixed $date
         * @param integer $diff
         * @return
         */
-       function check_date_differnce($date, $diff=1){
+       function check_date_difference($date, $diff=1){
                return (strtotime($date)<=time()+$diff*86400);
        }
index 9deded5..daba46a 100644 (file)
@@ -250,7 +250,7 @@ $iecho= "c";
                        exit;
                }
 
-               if(!check_date_differnce(trim($_REQUEST['date'])))
+               if(!check_date_difference(trim($_REQUEST['date'])))
                {
                        show_page("VerifyData","",_("You must not enter a date in the future."));
                        exit;