svn: /web/doc-editor/trunk/php/ EntitiesAcronymsFetcher.php

From: Date: Sun, 26 Jun 2011 02:15:08 +0000
Subject: svn: /web/doc-editor/trunk/php/ EntitiesAcronymsFetcher.php
Groups: php.doc.web 
Request: Send a blank email to doc-web+get-2075@lists.php.net to get a copy of this message
nbpoole Sun, 26 Jun 2011 02:15:08 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=312485 Log: Fix notices/warnings in EntitiesAcronymsFetcher.php Changed paths: U web/doc-editor/trunk/php/EntitiesAcronymsFetcher.php Modified: web/doc-editor/trunk/php/EntitiesAcronymsFetcher.php =================================================================== --- web/doc-editor/trunk/php/EntitiesAcronymsFetcher.php 2011-06-26 01:34:28 UTC (rev 312484) +++ web/doc-editor/trunk/php/EntitiesAcronymsFetcher.php 2011-06-26 02:15:08 UTC (rev 312485) @@ -33,12 +33,12 @@ $files = explode("|", $appConf[$project]['acronym.usedbyeditor.location']); - unset($this->acronyms); + $this->acronyms = array(); $count = 0; while( list($k, $file) = each($files)) { - if( !$content = file_get_contents($file) ) { + if( empty($file) || !$content = file_get_contents($file) ) { continue; } @@ -67,12 +67,12 @@ $files = explode("|", $appConf[$project]['entities.usedbyeditor.location']); - unset($this->entities); + $this->entities = array(); $count = 0; while( list($k, $file) = each($files)) { - if( !$content = file_get_contents($file) ) { + if( empty($file) || !$content = file_get_contents($file) ) { continue; }

« previous php.doc.web (#2075) next »