From c76aa232bf8f8b9ed5bd2d467469c5816c9305c0 Mon Sep 17 00:00:00 2001 From: real_nowhereman Date: Wed, 10 Sep 2008 07:51:39 +0000 Subject: [PATCH] type check --- fp-includes/core/core.entry.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fp-includes/core/core.entry.php b/fp-includes/core/core.entry.php index 197053f..0ffd941 100755 --- a/fp-includes/core/core.entry.php +++ b/fp-includes/core/core.entry.php @@ -79,6 +79,8 @@ } function &get_index($cat=0) { + if (!is_numeric($cat)) + trigger_error("CAT must be an integer ($cat was given)", E_USER_ERROR); if (!isset($this->indices[$cat])) { $f = INDEX_DIR.'index-'.$cat.'.dat'; if ($oldfile = file_exists($f))