title: Warning: Illegal string offset in PHP 5.4
body: <p>I upgraded to PHP 5.4 today and I am receiving some strange warnings:</p>
  
  <pre><code>Warning: Illegal string offset 'quote1' in file.php on line 110
  Warning: Illegal string offset 'quote1_title' in file.php on line 111
  </code></pre>
  
  <p>Those lines are this part of the code:</p>
  
  <pre><code>for($i = 0; $i &lt; 3; $i++) {
      $tmp_url = $meta['quote'. ($i+1)];
      $tmp_title = $meta['quote' . ($i+1) .'_title'];
  
      if(!empty($tmp_url) || !empty($tmp_title)) {
          $quotes[$src_cnt] = array();
          $quotes[$src_cnt]['url'] = $tmp_url;
          $quotes[$src_cnt]['title'] = $tmp_title;
          $src_cnt++;
      }
  }
  </code></pre>
  
  <p>So the <code>$tmp_url</code> and <code>$tmp_title</code> line.</p>
  
  <p>Why am I receiving this odd warning and what is the solution?</p>
  
  <p><strong>Update</strong>:</p>
  
  <p>This code is being used as a Wordpress plugin. $meta includes: </p>
  
  <pre><code>$meta = get_post_meta($post-&gt;ID,'_quote_source',TRUE);
  </code></pre>
  
  <p>So I am suspecting that whenever the quotes fields are empty, this warning appears. Is there any way that I can fix this for when the fields are empty?</p>