diff --git a/codepot/src/codepot/views/code_file.php b/codepot/src/codepot/views/code_file.php index bbac7e70..c6e3831e 100644 --- a/codepot/src/codepot/views/code_file.php +++ b/codepot/src/codepot/views/code_file.php @@ -9,7 +9,7 @@ $is_pdf_file = FALSE; $is_odf_file = FALSE; $is_special_stream = FALSE; - if (array_key_exists('properties', $file) && count($file['properties']) > 0) + if (array_key_exists('properties', $file) && !is_null($file['properties']) && count($file['properties']) > 0) { $octet_stream = FALSE; foreach ($file['properties'] as $pn => $pv) @@ -819,7 +819,7 @@ $this->load->view ( 0) + if (array_key_exists('properties', $file) && !is_null($file['properties']) && count($file['properties']) > 0) { print '
', $prettyprint_linenums, $prettyprint_lang); $charset = ''; - if (array_key_exists('properties', $file) && count($file['properties']) > 0) + if (array_key_exists('properties', $file) && !is_null($file['properties']) && count($file['properties']) > 0) { $p = &$file['properties']; if (array_key_exists('svn:mime-type', $p))