type check
This commit is contained in:
parent
42d6a9553b
commit
c76aa232bf
@ -79,6 +79,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
function &get_index($cat=0) {
|
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])) {
|
if (!isset($this->indices[$cat])) {
|
||||||
$f = INDEX_DIR.'index-'.$cat.'.dat';
|
$f = INDEX_DIR.'index-'.$cat.'.dat';
|
||||||
if ($oldfile = file_exists($f))
|
if ($oldfile = file_exists($f))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user