Browse Source

Avoid double header.

Julio Montoya 9 years ago
parent
commit
4a3d526cd5
1 changed files with 2 additions and 1 deletions
  1. 2 1
      main/inc/lib/database.lib.php

+ 2 - 1
main/inc/lib/database.lib.php

@@ -331,7 +331,8 @@ class Database
             try {
                 $result = $connection->executeQuery($query);
             } catch (Exception $e) {
-                api_not_allowed(true, get_lang('GeneralError'));
+                api_not_allowed(false, get_lang('GeneralError'));
+                exit;
             }
         }