Skip to content

Commit

Permalink
Fixed #4480: Now give proper error when XMLWriter class not available
Browse files Browse the repository at this point in the history
git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey@9105 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
mennodekker committed Sep 2, 2010
1 parent 19649f6 commit 1c5ac07
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions common.php
Expand Up @@ -7510,10 +7510,10 @@ function getSubQuestions($sid, $qid) {
* into PHP
*/
function getXMLWriter() {
try {
if (!extension_loaded('xmlwriter')) {
safe_die('XMLWriter class not compiled into PHP, please contact your system administrator');
} else {
$xmlwriter = new XMLWriter();
} catch (Exception $e) {
safe_die('XMLWriter class not compiled into PHP, please contact your system administrator');
}
return $xmlwriter;
}
Expand Down

0 comments on commit 1c5ac07

Please sign in to comment.