From ad97e441afb75ed33faa33ffa88b85419b08afbd Mon Sep 17 00:00:00 2001 From: Andrey Kutejko Date: Thu, 20 Jun 2013 21:59:58 +0300 Subject: [PATCH] fix app model detection --- ipf/application.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ipf/application.php b/ipf/application.php index c0a44ca..f07c273 100644 --- a/ipf/application.php +++ b/ipf/application.php @@ -26,7 +26,7 @@ abstract class IPF_Application $it = new DirectoryIterator($this->path.DIRECTORY_SEPARATOR.'models'); foreach ($it as $file) { $e = explode('.', $file->getFileName(), 2); - if ($e[1] === 'php') { + if (count($e) == 2 && $e[1] === 'php') { $this->models[] = $e[0]; } } -- 2.49.0