[Vtigercrm-developers] Bug in the vtiger 6.1 beta SVN 14208 - undefined variable in foreach loop
Holbok István
holbok at gmail.com
Wed Aug 13 19:01:22 GMT 2014
Dear vtiger Team,
I have just tried to install a new SVN 14208 vtiger 6.1 beta.
The install script shows the following warning:
Warning: Invalid argument supplied for foreach() in
....\modules\Vtiger\helpers\Util.php on line 683
Looking at this line I have found that the *$activityIds* variable used
in the foreach loop is undefined. It is obviously a bug.
public static function checkDbUTF8Support($conn) {
global $db_type;
if($db_type == 'pgsql')
return true;
$dbvarRS = $conn->Execute("show variables like '%_database' ");
$db_character_set = null;
$db_collation_type = null;
while(!$dbvarRS->EOF) {
$arr = $dbvarRS->FetchRow();
$arr = array_change_key_case($arr);
switch($arr['variable_name']) {
case 'character_set_database' : $db_character_set =
$arr['value']; break;
case 'collation_database' : $db_collation_type =
$arr['value']; break;
}
*foreach($activityIds as $activityId=>$color) {* *// = line 683*
$db->pquery('INSERT INTO
vtiger_calendar_user_activitytypes (id, defaultid, userid, color) VALUES
(?,?,?,?)',
array($db->getUniqueID('vtiger_calendar_user_activitytypes'),
$activityId, $userId, $color));
}
}
return (stristr($db_character_set, 'utf8') &&
stristr($db_collation_type, 'utf8'));
}
Kindest regards:
István
--
üdvözlettel:
*Holbok István*
+3670-342-0900
*e-mail:* holbok at gmail.com
*SkyPe:* holboki
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20140813/ecacb5cb/attachment.html>
More information about the vtigercrm-developers
mailing list