diff --git a/ieducar/intranet/include/clsCampos.inc.php b/ieducar/intranet/include/clsCampos.inc.php index 34f440b..55b748c 100755 --- a/ieducar/intranet/include/clsCampos.inc.php +++ b/ieducar/intranet/include/clsCampos.inc.php @@ -1102,7 +1102,7 @@ class clsCampos extends Core_Controller_Page_Abstract $campo_tabela = FALSE; // Cria nova tab - if (preg_match("^(tabbed_add_[0-9]+)", $nome) === 1) { + if (preg_match("/^(tabbed_add_[0-9]+)/i", $nome) === 1) { $nomes_tab = urlencode(serialize($arr_campos['cabecalho_tab'])); unset($arr_campos['cabecalho_tab']); @@ -1135,7 +1135,7 @@ class clsCampos extends Core_Controller_Page_Abstract continue; } - if (preg_match("^(tab_name_[0-9]+)", $nome) === 1) { + if (preg_match("/^(tab_name_[0-9]+)/i", $nome) === 1) { if ($existe_tab_aberta) { if ($this->__segue_fluxo) { $colspan = 2; @@ -1210,7 +1210,7 @@ class clsCampos extends Core_Controller_Page_Abstract continue; } - if (preg_match("^(tab_add_[0-9]+)",$nome) === 1) { + if (preg_match("/^(tab_add_[0-9]+)/i",$nome) === 1) { $campo_tabela = TRUE; $javascript = ''; diff --git a/ieducar/intranet/include/funcoes.inc.php b/ieducar/intranet/include/funcoes.inc.php index d438140..ef89adf 100755 --- a/ieducar/intranet/include/funcoes.inc.php +++ b/ieducar/intranet/include/funcoes.inc.php @@ -67,7 +67,7 @@ function calculoIdade($diaNasc, $mesNasc, $anoNasc) function idFederal2int($str) { $id_federal = str_replace(".", "", str_replace("-", "", str_replace("/", "", $str))); - return preg_replace("^0+", "", $id_federal); + return preg_replace("/^0+/", "", $id_federal); } function int2CPF($int) @@ -917,4 +917,4 @@ function girarTextoImagem($texto, $tamanho = 8, $altura = 130) imagepng($imagem, "tmp/{$texto}.png"); return "tmp/{$texto}.png"; -} \ No newline at end of file +} -- libgit2 0.21.2