[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] CVS: phpgwapi/inc class.validator.inc.php,1.2,1.3
From: |
Miles Lott <address@hidden> |
Subject: |
[Phpgroupware-cvs] CVS: phpgwapi/inc class.validator.inc.php,1.2,1.3 |
Date: |
Thu, 07 Mar 2002 23:02:47 -0500 |
Update of /cvsroot/phpgroupware/phpgwapi/inc
In directory subversions:/tmp/cvs-serv27480
Modified Files:
class.validator.inc.php
Log Message:
switching to is_???
Index: class.validator.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/phpgwapi/inc/class.validator.inc.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** class.validator.inc.php 2 Oct 2001 05:05:45 -0000 1.2
--- class.validator.inc.php 8 Mar 2002 04:02:44 -0000 1.3
***************
*** 177,181 ****
function is_allnumbers ($text)
{
! if( (gettype($text)) == 'integer')
{
return true;
--- 177,181 ----
function is_allnumbers ($text)
{
! if(is_int($text))
{
return true;
***************
*** 346,350 ****
}
! if( (gettype($Chars)) != 'array')
{
$this->ERROR = "custom_strip: [$Chars] is not
an array";
--- 346,350 ----
}
! if(!is_array($Chars))
{
$this->ERROR = "custom_strip: [$Chars] is not
an array";
***************
*** 373,377 ****
if($this->CLEAR) { $this->clear_error(); }
! if( (gettype($MyArray)) != 'array')
{
return;
--- 373,377 ----
if($this->CLEAR) { $this->clear_error(); }
! if(!is_array($MyArray))
{
return;
***************
*** 388,392 ****
echo "><TD COLSPAN=2><B>KEY</B></TD><TD
COLSPAN=2><B>VAL</B></TD></TR\n>";
}
! if( (gettype($val)) == 'array')
{
$NewName = "$key [$Name $count]";
--- 388,392 ----
echo "><TD COLSPAN=2><B>KEY</B></TD><TD
COLSPAN=2><B>VAL</B></TD></TR\n>";
}
! if(is_array($val))
{
$NewName = "$key [$Name $count]";
***************
*** 646,650 ****
$chunks = explode(".",$hostname);
! if( (gettype($chunks)) != 'array')
{
$this->ERROR = "is_hostname: Invalid hostname,
no dot seperator [$hostname]";
--- 646,650 ----
$chunks = explode(".",$hostname);
! if(!is_array($chunks))
{
$this->ERROR = "is_hostname: Invalid hostname,
no dot seperator [$hostname]";
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] CVS: phpgwapi/inc class.validator.inc.php,1.2,1.3,
Miles Lott <address@hidden> <=