diff --git a/admin/admin44.db b/admin/admin44.db
new file mode 100644
index 0000000..520e16b
Binary files /dev/null and b/admin/admin44.db differ
diff --git a/admin/js/core.js b/admin/js/core.js
index 37f7ce0..29fbf9c 100644
--- a/admin/js/core.js
+++ b/admin/js/core.js
@@ -1220,7 +1220,7 @@ function core_montaEditor(funcaoOK,w,h,funcaoClose)
}}}
);
}
- YAHOO.example.container.panelEditor = new YAHOO.widget.Panel("janela_editor", { fixedcenter:true,close:true,width:w, overflow:"auto",modal: true,visible:false,constraintoviewport:true } );
+ YAHOO.example.container.panelEditor = new YAHOO.widget.Panel("janela_editor", { fixedcenter:true,close:true,width:w, overflow:"auto",modal: false,visible:false,constraintoviewport:true } );
YAHOO.example.container.panelEditor.render();
}
else
diff --git a/admin/php/classe_arvore.php b/admin/php/classe_arvore.php
index 2ac9dd0..8cd634e 100644
--- a/admin/php/classe_arvore.php
+++ b/admin/php/classe_arvore.php
@@ -458,7 +458,15 @@ Return:
*/
function pegaTema($id_tema)
{
- return $this->execSQL($this->sql_temas." and id_tema = '$id_tema' ");
+ $q = $this->execSQL($this->sql_temas." and id_tema = '$id_tema' ");
+ if($q)
+ {return $q;}
+ else{
+ //caso de banco de dados antigo
+ $sql = "select kmz_tema,'0' as nacessos,id_tema,kml_tema,ogc_tema,download_tema,tags_tema,tipoa_tema,link_tema,desc_tema,nome_tema,codigo_tema from i3geoadmin_temas ";
+ $q = $this->execSQL($sql." where id_tema = '$id_tema' ");
+ return $q;
+ }
}
/*
Function: pegaTemasSubGrupo
@@ -695,7 +703,10 @@ Return:
//echo "
".$sql;
//error_reporting(E_ALL);
$q = $this->dbh->query($sql,PDO::FETCH_ASSOC);
- return $q->fetchAll();
+ if($q)
+ {return $q->fetchAll();}
+ else
+ {return false;}
}
/*
Verifica se uma string ocorre em um array
diff --git a/testainstal.php b/testainstal.php
index 5911639..effc18e 100644
--- a/testainstal.php
+++ b/testainstal.php
@@ -65,7 +65,7 @@ if(!function_exists("ms_GetVersion"))
{echo "O MAPSERVER PARECE NAO ESTAR INSTALADO!!!
";}
echo "---
";
if (get_cfg_var("allow_call_time_pass_reference") != 1){
- echo "Problema: allow_call_time_pass_reference no php.ini deveria estar como 'On'. O i3Geo não irá funcionar!!!
";
+ echo "Problema: allow_call_time_pass_reference no php.ini deveria estar como 'On'. O i3Geo pode não funcionar!!!
";
}
if (get_cfg_var("safe_mode") == 1){
echo "Problema: safe_mode no php.ini deveria estar como 'Off'. O i3Geo não irá funcionar!!!
";
--
libgit2 0.21.2