forked from extern/egroupware
Use is_array() instead of gettype()
This commit is contained in:
parent
9baade38b0
commit
0a91bc00b7
@ -306,7 +306,7 @@
|
||||
*/
|
||||
function verify_basic_settings()
|
||||
{
|
||||
if (gettype($GLOBALS['phpgw_info']['user']['preferences']) != 'array')
|
||||
if (!@is_array($GLOBALS['phpgw_info']['user']['preferences']))
|
||||
{
|
||||
$GLOBALS['phpgw_info']['user']['preferences'] = array();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user