[prev in list] [next in list] [prev in thread] [next in thread] 

List:       tep-commits
Subject:    [TEP-COMMIT] CVS: admin/admin/includes/functions general.php,1.159,1.160
From:       Harald Ponce de Leon <hpdl () users ! sourceforge ! net>
Date:       2003-07-12 8:32:49
[Download RAW message or body]

Update of /cvsroot/tep/admin/admin/includes/functions
In directory sc8-pr-cvs1:/tmp/cvs-serv3843/includes/functions

Modified Files:
	general.php 
Log Message:
fix bug report 1251 - integer values were not being parsed properly with
tep_not_null()


Index: general.php
===================================================================
RCS file: /cvsroot/tep/admin/admin/includes/functions/general.php,v
retrieving revision 1.159
retrieving revision 1.160
diff -u -d -r1.159 -r1.160
--- general.php	11 Jul 2003 14:39:28 -0000	1.159
+++ general.php	12 Jul 2003 08:32:47 -0000	1.160
@@ -285,7 +285,7 @@
         return false;
       }
     } else {
-      if (is_string($value) && ($value != '') && ($value != 'NULL') && \
(strlen(trim($value)) > 0)) { +      if ( (is_string($value) || is_int($value)) && \
($value != '') && ($value != 'NULL') && (strlen(trim($value)) > 0)) {  return true;
       } else {
         return false;



-------------------------------------------------------
This SF.Net email sponsored by: Parasoft
Error proof Web apps, automate testing & more.
Download & eval WebKing and get a free book.
www.parasoft.com/bulletproofapps1
_______________________________________________
Tep-commits mailing list
Tep-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tep-commits


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic