Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add sql log on install debug #8336

Merged
merged 3 commits into from
Mar 11, 2018
Merged

add sql log on install debug #8336

merged 3 commits into from
Mar 11, 2018

Conversation

defrance
Copy link
Contributor

new global variable INSTALL_DISPLAY_SQL_LOG to display sql log on module install

new global variable INSTALL_DISPLAY_SQL_LOG to display sql log on module install
@@ -1049,7 +1049,7 @@ function _load_tables($reldir)
{
if (preg_match('/\.sql$/i',$file) && ! preg_match('/\.key\.sql$/i',$file) && substr($file,0,4) == 'llx_' && substr($file,0,4) != 'data')
{
$result=run_sql($dir.$file,1,'',1);
$result=run_sql($dir.$file, $conf->global->INSTALL_DISPLAY_SQL_LOG, '', 1);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Replace
$conf->global->INSTALL_DISPLAY_SQL_LOG
with
empty($conf->global->INSTALL_DISPLAY_SQL_LOG)?0:1

to avoid warning in strict mode

@eldy eldy added the PR to fix or conflict to solve PR needs to be fixed to be integrated (except for conflicts, a comment describes the fix to do) label Mar 10, 2018
@eldy eldy merged commit d6eee30 into Dolibarr:develop Mar 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR to fix or conflict to solve PR needs to be fixed to be integrated (except for conflicts, a comment describes the fix to do)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants