mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-03-12 05:58:51 +01:00
Use is_array() instead of gettype()
This commit is contained in:
parent
9baade38b0
commit
0a91bc00b7
@ -306,7 +306,7 @@
|
|||||||
*/
|
*/
|
||||||
function verify_basic_settings()
|
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();
|
$GLOBALS['phpgw_info']['user']['preferences'] = array();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user