From 7ac64b1359678693bd4ca70c7c647ac3f68746b6 Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Fri, 1 Feb 2019 16:37:47 +0000 Subject: [PATCH] fixed some php7 warnings on count() in code_file.php --- codepot/src/codepot/views/code_file.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 '