title: php 5.4 String offset cast occurred
body: <p>on the following lines I get the error 'String offset cast occured'  </p>
  
  <pre><code>$code[$value['dictionaryAlias']] = $value['dictionaryText'][$codeLang];
  
  $code[$value['dictionaryAlias']] = $value['dictionaryText'][$langDefault];
  </code></pre>
  
  <p>Actually,  the code access a table.  It works in previous version but not in 5.4</p>
  
  <p>I am a newbie and I am in charge in converting the code. What changes should I make to make it work.
  I read that it is probably because the variable is a string instead of an array. What can I do then?</p>