Use is_array() instead of gettype()

This commit is contained in:
Miles Lott 2002-04-23 02:18:30 +00:00
parent 9baade38b0
commit 0a91bc00b7

View File

@ -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();
}