<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body smarttemplateinserted="true" 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<br>
    <br>
    <div class="moz-signature">-- <br>
      üdvözlettel:<br>
      <br>
      <b>Holbok István</b><br>
      <br>
      +3670-342-0900<br>
      <b>e-mail:</b> <a class="moz-txt-link-abbreviated" href="mailto:holbok@gmail.com">holbok@gmail.com</a><br>
      <b>SkyPe:</b> holboki<br>
      <br>
    </div>
  </body>
</html>