svn: /web/doc-editor/trunk/php/ ExtJsController.php
| From: | Yannick Torres | Date: | Mon, 21 Dec 2009 00:27:24 +0000 |
| Subject: | svn: /web/doc-editor/trunk/php/ ExtJsController.php | ||
| Groups: | php.doc.web | ||
| Request: | Send a blank email to doc-web+get-1356@lists.php.net to get a copy of this message | ||
yannick Mon, 21 Dec 2009 00:27:24 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=292388
Log:
try to fix a bug witch appears on the online version
Changed paths:
U web/doc-editor/trunk/php/ExtJsController.php
Modified: web/doc-editor/trunk/php/ExtJsController.php
===================================================================
--- web/doc-editor/trunk/php/ExtJsController.php 2009-12-21 00:19:42 UTC (rev 292387)
+++ web/doc-editor/trunk/php/ExtJsController.php 2009-12-21 00:27:24 UTC (rev 292388)
@@ -1282,7 +1282,7 @@
$return[$j]['id'] = $j;
$return[$j]['libel'] = str_replace("_", "", $lang);
- $return[$j]['total'] = ($summary[0]->nbFiles == NULL ) ? 0 :
$summary[0]->nbFiles;
+ $return[$j]['total'] = ( !isset($summary[0]) || $summary[0]->nbFiles ==
NULL ) ? 0 : $summary[0]->nbFiles;
$j ++;
}