diff --git a/bureau/admin/head.php b/bureau/admin/head.php index 8b697a3c..e581e4c3 100644 --- a/bureau/admin/head.php +++ b/bureau/admin/head.php @@ -44,7 +44,7 @@ if (!$charset) $charset="iso-8859-1";
-$oldid=intval($_COOKIE['oldid']); +$oldid=intval(isset($_COOKIE['oldid'])?$_COOKIE['oldid']:''); if ($oldid && $oldid!=$cuid) { echo "";
__("Invited session. Clic here to return to your previous session.");
diff --git a/bureau/class/lang_env.php b/bureau/class/lang_env.php
index 27bb7cd8..1cd34d1f 100644
--- a/bureau/class/lang_env.php
+++ b/bureau/class/lang_env.php
@@ -29,7 +29,7 @@ if (!(isset($lang))) { // Use the browser first preferred language
}
-if (!$locales[$lang]) { // Requested language not found in locales
+if (! isset($locales[$lang])) { // Requested language not found in locales
// treat special cases such as en_AU or fr_BF : use the language only, not the country.
$ll=substr($lang,0,2);
foreach($locales as $l) {
diff --git a/bureau/class/m_mem.php b/bureau/class/m_mem.php
index 5518ca48..946dda73 100644
--- a/bureau/class/m_mem.php
+++ b/bureau/class/m_mem.php
@@ -248,7 +248,7 @@ class m_mem {
function del_session() {
global $db,$user,$err,$cuid,$classes;
$err->log("mem","del_session");
- $_COOKIE["session"]=addslashes($_COOKIE["session"]);
+ $_COOKIE["session"]=addslashes(isset($_COOKIE["session"])?$_COOKIE["session"]:'');
setcookie("session","",0,"/");
setcookie("oldid","",0,"/admin/");
if ($_COOKIE["session"]=="") {
diff --git a/etc/alternc/apache2.conf b/etc/alternc/apache2.conf
index 71b40f57..dba54c43 100644
--- a/etc/alternc/apache2.conf
+++ b/etc/alternc/apache2.conf
@@ -14,6 +14,8 @@ ScriptAlias /cgi-bin/ /var/alternc/cgi-bin/