svn: /web/doc-editor/trunk/php/ EntitiesAcronymsFetcher.php
[email protected] (Neal Poole)
| Newsgroups | php.doc.web |
|---|---|
| Message-ID | <[email protected]> |
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;
}