check $krzipModel and "getKrzipCodeSearchHtml" method exists in $krzipModel

This commit is contained in:
khongchi 2013-11-26 16:14:55 +09:00
parent 424edf4b96
commit f01b8b932d
2 changed files with 25 additions and 19 deletions

View file

@ -596,7 +596,10 @@ class memberAdminView extends member
else if($extendForm->column_type == 'kr_zip')
{
$krzipModel = &getModel('krzip');
$template = $krzipModel->getKrzipCodeSearchHtml($extendForm->column_name, $extendForm->value);
if($krzipModel && method_exists($krzipModel , 'getKrzipCodeSearchHtml' ))
{
$template = $krzipModel->getKrzipCodeSearchHtml($extendForm->column_name, $extendForm->value);
}
}
else if($extendForm->column_type == 'jp_zip')
{