Fix Bug Phpmyadmin [sql.lib.php] + Php7.2 + Ubuntu 16.04

Warning in ./libraries/sql.lib.php#601

count(): Parameter must be an array or an object that implements Countable

couse of phpmyadmin’s library try to counting some parameter but got wrong a code. so when i looking at this line 601, I found this code at this path

$ /usr/share/phpmyadmin/libraries/sql.lib.php
|| (count($analyzed_sql_results[‘select_expr’] == 1)

that’s missing close bracket ‘)’ before operation with 1. So i changed it to

|| (count($analyzed_sql_results[‘select_expr’]) == 1

remove last close bracket ‘)’ at this line like this,

May this trick help your code.

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade