Skip to content
Snippets Groups Projects
Commit e050dcbf authored by Julian Maurice's avatar Julian Maurice
Browse files

Fix two 'undefined index' warnings

parent 20f8062c
Branches
Tags
4 merge requests!715Master,!651Master,!647Stable,!646Hotline 6.60
......@@ -36,7 +36,7 @@ if(!file_exists("../" . end($parts))) {
define("BASE_URL", "/" . $site) ;
function rootUrl() {
return (!$_SERVER['HTTPS'] || $_SERVER['HTTPS'] == 'off' ? 'http://' : 'https://')
return (!isset($_SERVER['HTTPS']) || !$_SERVER['HTTPS'] || $_SERVER['HTTPS'] == 'off' ? 'http://' : 'https://')
. $_SERVER['SERVER_NAME']
. ($_SERVER['SERVER_PORT'] == 80 ? '' : ':'.$_SERVER['SERVER_PORT']);
}
......
......@@ -302,7 +302,7 @@ class ZendAfi_View_Helper_Notice_Exemplaires_DateRetour extends ZendAfi_View_Hel
return $this->_('Retour');
}
public function getContent($exemplaire) {
return $exemplaire['date_retour'];
return isset($exemplaire['date_retour']) ? $exemplaire['date_retour'] : NULL;
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment