Browse Source

realizado ajustes de sintaxe para evitar fatal errors

1.9
douglas.strappasson 1 year ago
parent
commit
6ae671ace7
  1. 2
      include/phpagi/phpagi.php
  2. 3
      include/util/util.php

2
include/phpagi/phpagi.php

@ -1739,7 +1739,7 @@ class AGI
* @param integer $line line number of error
* @param array $context variables in the current scope
*/
function phpagi_error_handler($level, $message, $file, $line, $context)
function phpagi_error_handler($level, $message, $file, $line, $context = [])
{
if(ini_get('error_reporting') == 0) return; // this happens with an @

3
include/util/util.php

@ -343,8 +343,7 @@ function soTexto($str) {
}
function QuotedStr($str) {
global $dbcon;
return sprintf("'%s'", pg_escape_string($dbcon, trim($str)));
return sprintf("'%s'", trim($str));
}
function FormataFone($numero) {

Loading…
Cancel
Save