diff --git a/htdocs/website/class/website.class.php b/htdocs/website/class/website.class.php index 3cfc585519c..0805b1c4ed6 100644 --- a/htdocs/website/class/website.class.php +++ b/htdocs/website/class/website.class.php @@ -1211,7 +1211,7 @@ class Website extends CommonObject // Load sql record $runsql = run_sql($sqlfile, 1, '', 0, '', 'none', 0, 1, 0, 0, 1); // The maxrowid of table is searched into this function two if ($runsql <= 0) { - $this->errors[] = 'Failed to load sql file '.$sqlfile.' (ret='.$runsql.')'; + $this->errors[] = 'Failed to load sql file '.$sqlfile.' (ret='.((int) $runsql).')'; $error++; }