Allow functions deep in the stack (table callbacks) to throw exceptions in error conditions

This commit is contained in:
Nathan Gray 2011-06-21 21:14:16 +00:00
parent a555588dbe
commit 0ecbc8b54d

View File

@ -306,7 +306,12 @@ abstract class bo_merge
{
$mimetype = 'application/rtf';
}
return $this->merge_string($content,$ids,$err,$mimetype,$fix);
try {
return $this->merge_string($content,$ids,$err,$mimetype,$fix);
} catch (Exception $e) {
$err = $e->getMessage();
return false;
}
}
/**