<div dir="ltr"><span style="font-family:arial,sans-serif;font-size:13.333333969116211px">Thanks for the quick alert - the code was removed.</span><br></div><div class="gmail_extra"><br clear="all"><div><span style="border-collapse:collapse;font-family:arial,sans-serif;font-size:13px"><b>Connect with us on: </b><a href="http://twitter.com/vtigercrm" style="color:rgb(0,0,204)" target="_blank">Twitter</a> <b>I</b> <a href="http://www.facebook.com/pages/vtiger/226866697333578?sk=wall" style="color:rgb(0,0,204)" target="_blank">Facebook</a> <b>I</b> <a href="https://blogs.vtiger.com/" style="color:rgb(0,0,204)" target="_blank">Blog</a><b> I</b> <a href="http://wiki.vtiger.com/index.php/Main_Page" style="color:rgb(0,0,204)" target="_blank">Wiki</a> <b>I </b><a href="https://discussions.vtiger.com" style="color:rgb(0,0,204)" target="_blank">Forums </a><b>I</b> <a href="https://www.vtiger.com/" style="color:rgb(0,0,204)" target="_blank">Website</a></span></div>
<br><br><div class="gmail_quote">On Thu, Aug 14, 2014 at 12:31 AM, Holbok István <span dir="ltr"><<a href="mailto:holbok@gmail.com" target="_blank">holbok@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
Dear vtiger Team,<br>
<br>
I have just tried to install a new SVN 14208 vtiger 6.1 beta.<br>
The install script shows the following warning:<br>
<br>
Warning: Invalid argument supplied for foreach() in
....\modules\Vtiger\helpers\Util.php on line 683<br>
<br>
Looking at this line I have found that the <b><big>$activityIds</big></b>
variable used in the foreach loop is undefined. It is obviously a
bug.<br>
<br>
public static function checkDbUTF8Support($conn) {<br>
global $db_type;<br>
if($db_type == 'pgsql')<br>
return true;<br>
$dbvarRS = $conn->Execute("show variables like
'%_database' ");<br>
$db_character_set = null;<br>
$db_collation_type = null;<br>
while(!$dbvarRS->EOF) {<br>
$arr = $dbvarRS->FetchRow();<br>
$arr = array_change_key_case($arr);<br>
switch($arr['variable_name']) {<br>
case 'character_set_database' : $db_character_set =
$arr['value']; break;<br>
case 'collation_database' : $db_collation_type =
$arr['value']; break;<br>
}<br>
<br>
<font color="#ff0000"><b><big> foreach(<font color="#000099">$activityIds</font> as
$activityId=>$color) {</big></b></font> <b>// = line 683</b><br>
$db->pquery('INSERT INTO
vtiger_calendar_user_activitytypes (id, defaultid, userid, color)
VALUES (?,?,?,?)',
array($db->getUniqueID('vtiger_calendar_user_activitytypes'),
$activityId, $userId, $color));<br>
}<br>
}<br>
return (stristr($db_character_set, 'utf8') &&
stristr($db_collation_type, 'utf8'));<br>
}<br>
<br>
Kindest regards:<br>
István<span class="HOEnZb"><font color="#888888"><br>
<br>
<div>-- <br>
üdvözlettel:<br>
<br>
<b>Holbok István</b><br>
<br>
+3670-342-0900<br>
<b>e-mail:</b> <a href="mailto:holbok@gmail.com" target="_blank">holbok@gmail.com</a><br>
<b>SkyPe:</b> holboki<br>
<br>
</div>
</font></span></div>
<br>_______________________________________________<br>
<a href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a><br></blockquote></div><br></div>