From 0b17d072cf6d9da2aa42ac8ad2909810a20b87dc Mon Sep 17 00:00:00 2001 From: tjhunt Date: Tue, 13 Mar 2007 17:42:51 +0000 Subject: [PATCH] Eliminate bizarre use of function_exists. --- backup/restorelib.php | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/backup/restorelib.php b/backup/restorelib.php index 4f0059d0fb2..20e415b1b0d 100644 --- a/backup/restorelib.php +++ b/backup/restorelib.php @@ -1913,14 +1913,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); } }