Eliminate bizarre use of function_exists.

This commit is contained in:
tjhunt
2007-03-13 17:43:03 +00:00
parent 803b4bf64c
commit 4f510e2ec8
+1 -8
View File
@@ -1997,14 +1997,7 @@
foreach ($info as $category) {
//Skip empty categories (some backups can contain them)
if (!empty($category->id)) {
$catrestore = "restore_question_categories";
if (function_exists($catrestore)) {
//print_object ($category); //Debug
$status = $catrestore($category,$restore);
} else {
//Something was wrong. Function should exist.
$status = false;
}
$status = restore_question_categories($category,$restore);
}
}