diff --git a/setup/check_install.php b/setup/check_install.php
index 3196c77b83..26b8f11b3a 100644
--- a/setup/check_install.php
+++ b/setup/check_install.php
@@ -415,7 +415,7 @@
$checks = implode(', ',$checks);
$icon = $passed_icon;
- if (($msg = $args['msg']))
+ if (isset($args['msg']) && ($msg = $args['msg']))
{
$msg .= ': '.$perms."
\n";
}
@@ -423,7 +423,7 @@
{
$msg = lang('Checking file-permissions of %1 for %2 %3: %4',$rel_name,$check_not,$checks,$perms)."
\n";
}
- if ($args['error'])
+ if (isset($args['error']) && $args['error'])
{
$extra_error_msg = "
\n".$args['error'];
}