Skip to content

Commit

Permalink
fixed libxml errors issues
Browse files Browse the repository at this point in the history
  • Loading branch information
remi committed Aug 14, 2009
1 parent f594877 commit f5a2567
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Services/Service.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public function init() {

// Si les données existent dans la cache
if ($data = $Cache_Lite->get( $this->cache_id) ) {
libxml_use_internal_errors(true);
libxml_use_internal_errors( true );
$this->data = simplexml_load_string( $data );
libxml_clear_errors();
}
Expand Down Expand Up @@ -112,6 +112,7 @@ public function buildCache( $Cache_Lite = null ) {
if ( PEAR::isError($cacheWrite) ) {
/*var_dump( $cacheWrite->getMessage() );*/
}
libxml_use_internal_errors( true );
$this->data = simplexml_load_string( $content );
} else {
$this->data = false;
Expand Down

0 comments on commit f5a2567

Please sign in to comment.