mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-11 08:28:43 +01:00
intval() -> (int)
This commit is contained in:
parent
69b629038a
commit
86a9b91004
@ -156,7 +156,7 @@
|
||||
{
|
||||
$owner = $GLOBALS['phpgw_info']['user']['account_id'];
|
||||
}
|
||||
$groups = $GLOBALS['phpgw']->accounts->membership(intval($owner));
|
||||
$groups = $GLOBALS['phpgw']->accounts->membership((int)$owner);
|
||||
if (gettype($groups) == 'array')
|
||||
{
|
||||
while ($group = each($groups))
|
||||
@ -340,10 +340,12 @@
|
||||
{
|
||||
$s = '';
|
||||
srand((double)microtime()*1000000);
|
||||
$random_char = array('0','1','2','3','4','5','6','7','8','9','a','b','c','d','e','f',
|
||||
$random_char = array(
|
||||
'0','1','2','3','4','5','6','7','8','9','a','b','c','d','e','f',
|
||||
'g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v',
|
||||
'w','x','y','z','A','B','C','D','E','F','G','H','I','J','K','L',
|
||||
'M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z');
|
||||
'M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z'
|
||||
);
|
||||
|
||||
for ($i=0; $i<$size; $i++)
|
||||
{
|
||||
@ -1407,7 +1409,7 @@
|
||||
$GLOBALS['phpgw']->datetime = createobject('phpgwapi.datetime');
|
||||
}
|
||||
|
||||
if (!$t || intval($t) <= 0)
|
||||
if (!$t || (int)$t <= 0)
|
||||
{
|
||||
$t = $GLOBALS['phpgw']->datetime->gmtnow;
|
||||
}
|
||||
@ -1915,7 +1917,7 @@
|
||||
$GLOBALS['phpgw']->db->query("UPDATE phpgw_nextid SET id=".$id." WHERE appname='".$appname."'",__LINE__,__FILE__);
|
||||
}
|
||||
|
||||
return intval($id);
|
||||
return (int)$id;
|
||||
}
|
||||
|
||||
// This will return a value for the last id entered, which an app may need to check
|
||||
@ -1958,7 +1960,7 @@
|
||||
{
|
||||
return False;
|
||||
}
|
||||
return intval($id);
|
||||
return (int)$id;
|
||||
}
|
||||
}//end common class
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user