Skip to content

Instantly share code, notes, and snippets.

@coder618
Last active August 16, 2019 12:31
Show Gist options
  • Save coder618/a16b35ecee48e4d7c296a54cdb04adfc to your computer and use it in GitHub Desktop.
Save coder618/a16b35ecee48e4d7c296a54cdb04adfc to your computer and use it in GitHub Desktop.
phpmyadmin problem in php7.2
/**
* Function to check whether to remember the sorting order or not
*
* @param array $analyzed_sql_results the analyzed query and other variables set
* after analyzing the query
*
* @return boolean
*/
function PMA_isRememberSortingOrder($analyzed_sql_results)
{
return $GLOBALS['cfg']['RememberSorting']
&& ! ($analyzed_sql_results['is_count']
|| $analyzed_sql_results['is_export']
|| $analyzed_sql_results['is_func']
|| $analyzed_sql_results['is_analyse'])
&& $analyzed_sql_results['select_from']
&& ((empty($analyzed_sql_results['select_expr']))
|| (count($analyzed_sql_results['select_expr']) == 1)
&& ($analyzed_sql_results['select_expr'][0] == '*'))
&& count($analyzed_sql_results['select_tables']) == 1;
}
/*
LInk: https://stackoverflow.com/questions/51587227/phpmyadmin-error-in-processing-request-error-code-500-error-text-internal-serv
loc: /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