Ver código fonte

Make exception handler PHP5 / PHP7 agnostic.

pull/89/head
Benjamin Southall 7 anos atrás
pai
commit
5296f2a784
1 arquivos alterados com 1 adições e 1 exclusões
  1. +1
    -1
      inc/error.php

+ 1
- 1
inc/error.php Ver arquivo

@@ -8,7 +8,7 @@ function error_handler($errno,$errstr,$errfile, $errline, $errcontext){
return false; return false;
} }


function exception_handler(Exception $e){
function exception_handler($e){
error($e->getMessage()); error($e->getMessage());
} }




Carregando…
Cancelar
Salvar