mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-02 03:19:56 +01:00
formatting
This commit is contained in:
parent
9dcc98b2d5
commit
ad06fdf765
@ -159,7 +159,7 @@
|
||||
function _send_xmlrpc_ssl($method_name, $args, $url, $debug=True)
|
||||
{
|
||||
list($uri,$hostpart) = $this->_split_url($url);
|
||||
if(gettype($args) != 'array')
|
||||
if(!is_array($args))
|
||||
{
|
||||
$arr[] = CreateObject('phpgwapi.xmlrpcval',$args,'string');
|
||||
$f = CreateObject('phpgwapi.xmlrpcmsg', $method_name, $arr,'string');
|
||||
@ -168,7 +168,7 @@
|
||||
{
|
||||
while(list($key,$val) = @each($args))
|
||||
{
|
||||
if(gettype($val) == 'array')
|
||||
if(is_array($val))
|
||||
{
|
||||
while(list($x,$y) = each($val))
|
||||
{
|
||||
@ -211,7 +211,7 @@
|
||||
function _send_xmlrpc_($method_name, $args, $url, $debug=True)
|
||||
{
|
||||
list($uri,$hostpart) = $this->_split_url($url);
|
||||
if(gettype($args) != 'array')
|
||||
if(!is_array($args))
|
||||
{
|
||||
$arr[] = CreateObject('phpgwapi.xmlrpcval',$args,'string');
|
||||
$f = CreateObject('phpgwapi.xmlrpcmsg', $method_name, $arr,'string');
|
||||
@ -220,7 +220,7 @@
|
||||
{
|
||||
while(list($key,$val) = @each($args))
|
||||
{
|
||||
if(gettype($val) == 'array')
|
||||
if(is_array($val))
|
||||
{
|
||||
while(list($x,$y) = each($val))
|
||||
{
|
||||
@ -265,7 +265,7 @@
|
||||
{
|
||||
$method_name = str_replace('.','_',$method_name);
|
||||
list($uri,$hostpart) = $this->_split_url($url);
|
||||
if(gettype($args) != 'array')
|
||||
if(!is_array($args))
|
||||
{
|
||||
$arr[] = CreateObject('phpgwapi.soapval','','string',$args);
|
||||
}
|
||||
@ -273,7 +273,7 @@
|
||||
{
|
||||
while(list($key,$val) = @each($args))
|
||||
{
|
||||
if(gettype($val) == 'array')
|
||||
if(is_array($val))
|
||||
{
|
||||
while(list($x,$y) = each($val))
|
||||
{
|
||||
@ -319,7 +319,7 @@
|
||||
{
|
||||
while(list($key,$val) = @each($args))
|
||||
{
|
||||
if(gettype($val) == 'array')
|
||||
if(is_array($val))
|
||||
{
|
||||
while(list($x,$y) = each($val))
|
||||
{
|
||||
@ -418,7 +418,7 @@
|
||||
{
|
||||
$serverid = $this->serverid;
|
||||
}
|
||||
if($serverid && gettype($this->server) == 'array')
|
||||
if($serverid && is_array($this->server))
|
||||
{
|
||||
$sql = "UPDATE $this->table SET "
|
||||
. "server_name='" . $this->server['server_name'] . "',"
|
||||
@ -440,7 +440,7 @@
|
||||
|
||||
function create($server_info='')
|
||||
{
|
||||
if(gettype($server_info) != 'array')
|
||||
if(!is_array($server_info))
|
||||
{
|
||||
return False;
|
||||
}
|
||||
@ -605,7 +605,7 @@
|
||||
{
|
||||
return False;
|
||||
}
|
||||
if(gettype($serverdata) == 'integer')
|
||||
if(is_int($serverdata))
|
||||
{
|
||||
$serverid = $serverdata;
|
||||
settype($server_name,'string');
|
||||
@ -627,7 +627,7 @@
|
||||
/* TODO - Determine trust level here */
|
||||
function auth($serverdata='')
|
||||
{
|
||||
if(!$serverdata || gettype($serverdata) != 'array')
|
||||
if(!$serverdata || !is_array($serverdata))
|
||||
{
|
||||
return False;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user