Fix an E_WARNING when using Mass Delete

This commit is contained in:
Deon George 2011-05-04 10:23:01 +10:00
parent 6c93c1fc72
commit 92acf6f158

View File

@ -104,11 +104,15 @@ class page {
echo '<head>';
printf('<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />');
$DNs = get_request('dn','REQUEST');
if (is_array($DNs))
$DNs = '';
if (isset($_SESSION[APPCONFIG]))
printf('<title>%s (%s) - %s%s</title>',
$this->_app['title'],
app_version(),
(get_request('dn','REQUEST') ? htmlspecialchars(get_request('dn','REQUEST')).' ' : ''),
$DNs ? htmlspecialchars($DNs).' ' : '',
$_SESSION[APPCONFIG]->getValue('appearance','page_title'));
else
printf('<title>%s - %s</title>',$this->_app['title'],app_version());