[TEP-COMMIT] CVS: admin/admin/includes/functions general.php,1.159,1.160
Harald Ponce de Leon <[email protected]>
| Newsgroups | gmane.comp.web.oscommerce.cvs |
|---|---|
| Message-ID | <[email protected]> |
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