title: Why is this use of count() not valid in php?
body: <p>There are a bunch of questions relating to errors with the <code>count()</code> logic in some phpmyadmin libraries but they all seem slightly different to this one.</p>
  
  <p>I'm at a bit of a loss with this strange behavior in the 'Designer' tab. I'm informed that <strong>'errors have been detected on the server!'</strong> and that I should <strong>'look at the bottom of this window'</strong>, but as you can see from the image there is nothing in the console and the error message is obscured:</p>
  
  <p><a href="https://i.stack.imgur.com/eTEeD.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/eTEeD.png" alt="screendump1"></a></p>
  
  <p>After getting this popup every time I opened the Designer tab, I decided to track it down:</p>
  
  <p><a href="https://i.stack.imgur.com/hRlQa.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hRlQa.png" alt="enter image description here"></a></p>
  
  <p>... and looking at the line in question, #405, in <strong>/usr/share/phpmyadmin/libraries/pmd_common.php</strong>, I found:</p>
  
  <pre class="lang-php prettyprint-override"><code>if (count($min_page_no[0])) {
  </code></pre>
  
  <p>... but isn't this a perfectly legal use of the <code>count()</code> function?
  This is in a library file so how can I debug this? - I tried to <code>var_dump($min_page_no[0]);</code> and reload the page to see what I'm dealing with, but nothing was displayed.</p>