Aleksander Machniak
2013-02-01 a39fd4db67cbebc9aecb906818f578608c9180fc
Set default error code (500) if not specified in raise_error()
1 files modified
7 ■■■■ changed files
program/lib/Roundcube/rcube.php 7 ●●●● patch | view | raw | blame | history
program/lib/Roundcube/rcube.php
@@ -1073,14 +1073,17 @@
    {
        // handle PHP exceptions
        if (is_object($arg) && is_a($arg, 'Exception')) {
            $err = array(
            $arg = array(
                'type' => 'php',
                'code' => $arg->getCode(),
                'line' => $arg->getLine(),
                'file' => $arg->getFile(),
                'message' => $arg->getMessage(),
            );
            $arg = $err;
        }
        if (empty($arg['code'])) {
            $arg['code'] = 500;
        }
        // installer