Skip to content

Instantly share code, notes, and snippets.

@mohamm6d
Created April 28, 2020 09:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mohamm6d/8d136cc0ba848e14665f1a20c3b372a7 to your computer and use it in GitHub Desktop.
Save mohamm6d/8d136cc0ba848e14665f1a20c3b372a7 to your computer and use it in GitHub Desktop.
Problem with phpMyAdmin and PHP. Warning in ./libraries/sql.lib.php#613 count()
sudo cp /usr/share/phpmyadmin/libraries/sql.lib.php /usr/share/phpmyadmin/libraries/sql.lib.php.bak
sudo nano /usr/share/phpmyadmin/libraries/sql.lib.php
#Press CTRL + W and search for (count($analyzed_sql_results['select_expr'] == 1)
#Replace it with ((count($analyzed_sql_results['select_expr']) == 1) and save the file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment