Skip to content

Instantly share code, notes, and snippets.

@icetee
Created January 3, 2019 06:39
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 icetee/6ecf0a348c068cbbc2a7ae2652de2d44 to your computer and use it in GitHub Desktop.
Save icetee/6ecf0a348c068cbbc2a7ae2652de2d44 to your computer and use it in GitHub Desktop.
Fix phpmyadmin count issue
# Warning in ./libraries/sql.lib.php#613
# count(): Parameter must be an array or an object that implements Countable
# https://stackoverflow.com/a/50536059/6393270
sudo sed -i "s/|\s*\((count(\$analyzed_sql_results\['select_expr'\]\)/| (\1)/g" /usr/share/phpmyadmin/libraries/sql.lib.php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment