2
Try replacing
define('USER_CAN_CREATE_ALBUMS', (int)$USER_DATA['can_create_albums']);
in /modules/xcgal/include/init.inc.php by
if (((int)$USER_DATA['can_create_albums'] == 1) && !USER_IS_ADMIN)
{
$chk_user_albums = $xoopsDB->query("SELECT aid FROM ".$xoopsDB->prefix("xcgal_albums")." WHERE category='".(FIRST_USER_CAT + USER_ID)."' ");
if ($xoopsDB->getRowsNum($chk_user_albums) >= 1)
{
define('USER_CAN_CREATE_ALBUMS', 0);
}
else
{
define('USER_CAN_CREATE_ALBUMS', 1);
}
}
else
{
define('USER_CAN_CREATE_ALBUMS', (int)$USER_DATA['can_create_albums']);
}