diff --git a/htdocs/ai/class/ai.class.php b/htdocs/ai/class/ai.class.php index e581fea16fa..8eb4ae4d642 100644 --- a/htdocs/ai/class/ai.class.php +++ b/htdocs/ai/class/ai.class.php @@ -233,8 +233,8 @@ class Ai ); // Add a system message - $addDateTimeContext = 0; - if ($addDateTimeContext) { + $addDateTimeContext = false; + if ($addDateTimeContext) { // @phpstan-ignore-line $prePrompt = ($prePrompt ? $prePrompt.(preg_match('/[\.\!\?]$/', $prePrompt) ? '' : '.').' ' : '').'Today we are '.dol_print_date(dol_now(), 'dayhourtext'); } if ($prePrompt) { diff --git a/htdocs/ai/lib/ai.lib.php b/htdocs/ai/lib/ai.lib.php index 25aa3482626..8705f1e961f 100644 --- a/htdocs/ai/lib/ai.lib.php +++ b/htdocs/ai/lib/ai.lib.php @@ -27,7 +27,7 @@ /** * Prepare admin pages header * - * @return array>}> + * @return array> */ function getLitOfAIFeatures() { diff --git a/htdocs/core/lib/geturl.lib.php b/htdocs/core/lib/geturl.lib.php index d3c9c2e3e13..20d22d47b7c 100644 --- a/htdocs/core/lib/geturl.lib.php +++ b/htdocs/core/lib/geturl.lib.php @@ -52,7 +52,7 @@ function getURLContent($url, $postorget = 'GET', $param = '', $followlocation = dol_syslog("getURLContent postorget=".$postorget." URL=".$url." param=".$param); if (!function_exists('curl_init')) { - return array('http_code' => 500, 'content' => '', 'curl_error_no' => 'PHP curl lib not available', 'curl_error_msg' => 'PHP curl library must be installed'); + return array('http_code' => 500, 'content' => '', 'curl_error_no' => 1, 'curl_error_msg' => 'PHP curl library must be installed'); } //setting the curl parameters. diff --git a/htdocs/website/index.php b/htdocs/website/index.php index 7d49f372c83..3f86b929e99 100644 --- a/htdocs/website/index.php +++ b/htdocs/website/index.php @@ -3548,7 +3548,7 @@ if (!GETPOST('hide_websitemenu')) { print ''; - print ''; + print ''; // Print nav arrows $pagepreviousid = 0;