type check

This commit is contained in:
real_nowhereman 2008-09-10 07:51:39 +00:00
parent 42d6a9553b
commit c76aa232bf

View File

@ -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))