All *_list() functions now return html code instead direct display, *_list_cells...
[fa-stable.git] / includes / errors.inc
index 68c26488579285aa949d3b777406e85a96612523..bfa213d5514d96ab1ac59e87e22fa8ffcc2619ba 100644 (file)
@@ -162,8 +162,7 @@ function check_db_error($msg, $sql_statement, $exit_if_error=true, $rollback_if_
                
                if ($exit_if_error) 
                {
-                       echo "<br><br>";
-                       exit;
+                       end_page(); exit;
                }
        }
        return $db_error;